- Timestamp:
- Feb 11, 2011, 4:31:42 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- d4927a7
- Parents:
- 35b6eb9
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/27/09 00:52:41)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
keymap.c
r96828e4 rddbbcffa 22 22 void owl_keymap_cleanup(owl_keymap *km) 23 23 { 24 owl_free(km->name);25 owl_free(km->desc);24 g_free(km->name); 25 g_free(km->desc); 26 26 owl_list_cleanup(&km->bindings, (void (*)(void *))owl_keybinding_delete); 27 27 } … … 40 40 if ((kb = g_new(owl_keybinding, 1)) == NULL) return(-1); 41 41 if (0 != owl_keybinding_init(kb, keyseq, command, function_fn, desc)) { 42 owl_free(kb);42 g_free(kb); 43 43 return(-1); 44 44 } … … 65 65 if ((kb = g_new(owl_keybinding, 1)) == NULL) return(-1); 66 66 if (0 != owl_keybinding_make_keys(kb, keyseq)) { 67 owl_free(kb);67 g_free(kb); 68 68 return(-1); 69 69 } … … 225 225 void owl_keyhandler_keymap_namelist_cleanup(owl_list *l) 226 226 { 227 owl_list_cleanup(l, owl_free);227 owl_list_cleanup(l, g_free); 228 228 } 229 229
Note: See TracChangeset
for help on using the changeset viewer.