Changeset 6a5f0c3 for aim.c


Ignore:
Timestamp:
Dec 25, 2013, 3:22:29 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Children:
b36b9a6
Parents:
58777e9
git-author:
Anders Kaseorg <andersk@mit.edu> (12/25/13 12:53:27)
git-committer:
Anders Kaseorg <andersk@mit.edu> (12/25/13 15:22:29)
Message:
owl_message_set_attribute: Take a destroy function for the value

In the case of constant strings, and ZNotice_t fields other than the
body, this lets us avoid wasting memory on unnecessary string copies.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • aim.c

    r7dcef03 r6a5f0c3  
    10561056                         OWL_MESSAGE_DIRECTION_IN,
    10571057                         0);
    1058   if (args->icbmflags & AIM_IMFLAGS_AWAY) owl_message_set_attribute(m, "isauto", "");
     1058  if (args->icbmflags & AIM_IMFLAGS_AWAY) owl_message_set_attribute(m, "isauto", "", NULL);
    10591059  owl_global_messagequeue_addmsg(&g, m);
    10601060  g_free(stripmsg);
Note: See TracChangeset for help on using the changeset viewer.