Changeset 7dcef03 for keybinding.c
- Timestamp:
- Dec 25, 2013, 11:33:37 AM (11 years ago)
- Branches:
- master, release-1.10
- Children:
- 8f95fc4, c53f5e8, 1bd5aa9
- Parents:
- d779a1a
- git-author:
- Anders Kaseorg <andersk@mit.edu> (12/25/13 11:18:38)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (12/25/13 11:33:37)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
keybinding.c
rf271129 r7dcef03 14 14 CALLER_OWN owl_keybinding *owl_keybinding_new(const char *keyseq, const char *command, void (*function_fn)(void), const char *desc) 15 15 { 16 owl_keybinding *kb = g_ new(owl_keybinding, 1);16 owl_keybinding *kb = g_slice_new(owl_keybinding); 17 17 18 18 owl_function_debugmsg("owl_keybinding_init: creating binding for <%s> with desc: <%s>", keyseq, desc); 19 19 if (command && function_fn) { 20 g_ free(kb);20 g_slice_free(owl_keybinding, kb); 21 21 return NULL; 22 22 } else if (command && !function_fn) { … … 29 29 30 30 if (owl_keybinding_make_keys(kb, keyseq) != 0) { 31 g_ free(kb);31 g_slice_free(owl_keybinding, kb); 32 32 return NULL; 33 33 } … … 70 70 g_free(kb->desc); 71 71 g_free(kb->command); 72 g_ free(kb);72 g_slice_free(owl_keybinding, kb); 73 73 } 74 74
Note: See TracChangeset
for help on using the changeset viewer.