Changeset 3cdd6d2 for buddylist.c


Ignore:
Timestamp:
Jun 25, 2011, 3:26:15 AM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
ce68f23
Parents:
e4524da
git-author:
David Benjamin <davidben@mit.edu> (06/11/11 19:49:43)
git-committer:
David Benjamin <davidben@mit.edu> (06/25/11 03:26:15)
Message:
Add owl_ptr_array_free convenience function

Unfortunately, most uses of GPtrArray here require a two-step chant
which is really annoying. Until we require glib 2.22 and get
g_ptr_array_new_with_free_func, use this helper function.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • buddylist.c

    rd191f45 r3cdd6d2  
    134134void owl_buddylist_cleanup(owl_buddylist *bl)
    135135{
    136   g_ptr_array_foreach(bl->buddies, (GFunc)owl_buddy_delete, NULL);
    137   g_ptr_array_free(bl->buddies, true);
     136  owl_ptr_array_free(bl->buddies, (GDestroyNotify)owl_buddy_delete);
    138137}
Note: See TracChangeset for help on using the changeset viewer.