diff --git a/src/core/commands.c b/src/core/commands.c index c2882925..17b825b5 100644 --- a/src/core/commands.c +++ b/src/core/commands.c @@ -89,6 +89,7 @@ command_module_find_and_remove(COMMAND_REC *rec, SIGNAL_FUNC func) if (cb->func == func) { rec->callbacks = g_slist_remove(rec->callbacks, cb); + g_free(cb); return rec; } }