Changeset 96828e4 for buddylist.c


Ignore:
Timestamp:
Feb 11, 2011, 4:31:33 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
35b6eb9
Parents:
9518a85
git-author:
Anders Kaseorg <andersk@mit.edu> (08/27/09 00:51:45)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:33)
Message:
Replace owl_malloc with g_new and g_new0.

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

Legend:

Unmodified
Added
Removed
  • buddylist.c

    r1c4b4ca r96828e4  
    1111{
    1212  owl_buddy *b;
    13   b=owl_malloc(sizeof(owl_buddy));
     13  b=g_new(owl_buddy, 1);
    1414 
    1515  owl_buddy_create(b, OWL_PROTOCOL_AIM, screenname);
     
    5252
    5353    /* if not, create the login message */
    54     m=owl_malloc(sizeof(owl_message));
     54    m=g_new(owl_message, 1);
    5555    owl_message_create_aim(m,
    5656                           screenname,
     
    7171
    7272  if (owl_buddylist_is_aim_buddy_loggedin(bl, screenname)) {
    73     m=owl_malloc(sizeof(owl_message));
     73    m=g_new(owl_message, 1);
    7474    owl_message_create_aim(m,
    7575                           screenname,
Note: See TracChangeset for help on using the changeset viewer.