- Timestamp:
- Feb 11, 2011, 4:31:33 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 35b6eb9
- Parents:
- 9518a85
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/27/09 00:51:45)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:33)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
keymap.c
r44cc9ab r96828e4 38 38 int i; 39 39 40 if ((kb = owl_malloc(sizeof(owl_keybinding))) == NULL) return(-1);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 42 owl_free(kb); … … 63 63 int i; 64 64 65 if ((kb = owl_malloc(sizeof(owl_keybinding))) == NULL) return(-1);65 if ((kb = g_new(owl_keybinding, 1)) == NULL) return(-1); 66 66 if (0 != owl_keybinding_make_keys(kb, keyseq)) { 67 67 owl_free(kb); … … 197 197 { 198 198 owl_keymap *km; 199 km = owl_malloc(sizeof(owl_keymap));199 km = g_new(owl_keymap, 1); 200 200 if (!km) return NULL; 201 201 owl_keymap_init(km, name, desc, default_fn, prealways_fn, postalways_fn);
Note: See TracChangeset
for help on using the changeset viewer.