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

    re4d7cb6 r3cdd6d2  
    2424  g_free(km->name);
    2525  g_free(km->desc);
    26   g_ptr_array_foreach(km->bindings, (GFunc)owl_keybinding_delete, NULL);
    27   g_ptr_array_free(km->bindings, true);
     26  owl_ptr_array_free(km->bindings, (GDestroyNotify)owl_keybinding_delete);
    2827}
    2928
Note: See TracChangeset for help on using the changeset viewer.