Changeset ddbbcffa for keymap.c


Ignore:
Timestamp:
Feb 11, 2011, 4:31:42 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, 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)
Message:
Replace owl_free with g_free.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Karl Ramm <kcr@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • keymap.c

    r96828e4 rddbbcffa  
    2222void owl_keymap_cleanup(owl_keymap *km)
    2323{
    24   owl_free(km->name);
    25   owl_free(km->desc);
     24  g_free(km->name);
     25  g_free(km->desc);
    2626  owl_list_cleanup(&km->bindings, (void (*)(void *))owl_keybinding_delete);
    2727}
     
    4040  if ((kb = g_new(owl_keybinding, 1)) == NULL) return(-1);
    4141  if (0 != owl_keybinding_init(kb, keyseq, command, function_fn, desc)) {
    42     owl_free(kb);
     42    g_free(kb);
    4343    return(-1);
    4444  }
     
    6565  if ((kb = g_new(owl_keybinding, 1)) == NULL) return(-1);
    6666  if (0 != owl_keybinding_make_keys(kb, keyseq)) {
    67     owl_free(kb);
     67    g_free(kb);
    6868    return(-1);
    6969  }
     
    225225void owl_keyhandler_keymap_namelist_cleanup(owl_list *l)
    226226{
    227   owl_list_cleanup(l, owl_free);
     227  owl_list_cleanup(l, g_free);
    228228}
    229229
Note: See TracChangeset for help on using the changeset viewer.