Changeset 80b5c42 for buddylist.c


Ignore:
Timestamp:
Mar 1, 2010, 8:15:53 PM (15 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
Children:
59077f9
Parents:
516c27e
git-author:
Anders Kaseorg <andersk@mit.edu> (02/28/10 02:39:52)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/01/10 20:15:53)
Message:
Add owl_buddy_delete to fix leaks.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Alejandro R. Sedeño <asedeno@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • buddylist.c

    r35b3518 r80b5c42  
    2929    if (!strcasecmp(name, owl_buddy_get_name(b)) && owl_buddy_is_proto_aim(b)) {
    3030      owl_list_remove_element(&(bl->buddies), i);
    31       owl_buddy_free(b);
     31      owl_buddy_delete(b);
    3232      return(0);
    3333    }
     
    131131void owl_buddylist_clear(owl_buddylist *bl)
    132132{
    133   owl_list_free_all(&(bl->buddies), (void(*)(void*))owl_buddy_free);
     133  owl_list_free_all(&(bl->buddies), (void (*)(void *))owl_buddy_delete);
    134134  owl_list_create(&(bl->buddies));
    135135}
     
    137137void owl_buddylist_free(owl_buddylist *bl)
    138138{
    139   owl_list_free_all(&(bl->buddies), (void(*)(void*))owl_buddy_free);
     139  owl_list_free_all(&(bl->buddies), (void (*)(void *))owl_buddy_delete);
    140140}
Note: See TracChangeset for help on using the changeset viewer.