diff --git a/ncdc/src/mainwindow.c b/ncdc/src/mainwindow.c index 778a845..a00acd5 100644 --- a/ncdc/src/mainwindow.c +++ b/ncdc/src/mainwindow.c @@ -400,7 +400,7 @@ void ncdc_mainwindow_input_ready(ncdc_mainwindow_t n) if (key != NULL && (k = ncdc_find_keybinding(keys_global, key, keylen)) != NULL) { k->handler(n); - return; + goto cleanup; } switch (n->focus) { @@ -434,6 +434,8 @@ void ncdc_mainwindow_input_ready(ncdc_mainwindow_t n) } break; } +cleanup: + free(key); }