Changeset 3cdd6d2 for zwrite.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
  • zwrite.c

    r12294d2 r3cdd6d2  
    348348void owl_zwrite_cleanup(owl_zwrite *z)
    349349{
    350   g_ptr_array_foreach(z->recips, (GFunc)g_free, NULL);
    351   g_ptr_array_free(z->recips, true);
     350  owl_ptr_array_free(z->recips, g_free);
    352351  g_free(z->cmd);
    353352  g_free(z->zwriteline);
Note: See TracChangeset for help on using the changeset viewer.