summaryrefslogtreecommitdiff
path: root/src/dwb.c
diff options
context:
space:
mode:
authorportix <none@none>2013-02-21 23:39:59 +0100
committerportix <none@none>2013-02-21 23:39:59 +0100
commitbcc6b6f068243c1e3d5198af17d0d20e8c43178a (patch)
tree5364e337076f4daddb9f32241d2a5f114b4e9e49 /src/dwb.c
parenteb64420c72f6c635a0724f0318a7749f5710080e (diff)
downloaddwb-bcc6b6f068243c1e3d5198af17d0d20e8c43178a.zip
Unbind override keys; free KeyMap mapped with bind
Diffstat (limited to 'src/dwb.c')
-rw-r--r--src/dwb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dwb.c b/src/dwb.c
index e2b00b8a..faa2b749 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -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);