diff options
author | portix <none@none> | 2013-02-21 23:39:59 +0100 |
---|---|---|
committer | portix <none@none> | 2013-02-21 23:39:59 +0100 |
commit | bcc6b6f068243c1e3d5198af17d0d20e8c43178a (patch) | |
tree | 5364e337076f4daddb9f32241d2a5f114b4e9e49 /src/dwb.c | |
parent | eb64420c72f6c635a0724f0318a7749f5710080e (diff) | |
download | dwb-bcc6b6f068243c1e3d5198af17d0d20e8c43178a.zip |
Unbind override keys; free KeyMap mapped with bind
Diffstat (limited to 'src/dwb.c')
-rw-r--r-- | src/dwb.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3218,6 +3218,7 @@ dwb_get_scripts() map->key = ""; map->mod = 0; } + // TODO Free navigation FunctionMap fm = { { n->first, n->first }, CP_DONT_SAVE | CP_COMMANDLINE | CP_USERSCRIPT, (Func)dwb_execute_user_script, NULL, POST_SM, { .arg = path }, EP_NONE, {NULL} }; *fmap = fm; map->map = fmap; @@ -3324,7 +3325,11 @@ dwb_clean_up() { KeyMap *m = l->data; if (m->map->prop & CP_SCRIPT) + { scripts_unbind(m->map->arg.p); + g_free(m->map->n.first); + g_free(m->map->n.second); + } if (m->map->prop & (CP_USERSCRIPT | CP_SCRIPT)) g_free(m->map); g_free(m); |