diff options
-rw-r--r-- | src/plugins/api.c | 3 | ||||
-rw-r--r-- | src/ui/window.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/api.c b/src/plugins/api.c index a5f5deea..44182440 100644 --- a/src/plugins/api.c +++ b/src/plugins/api.c @@ -303,6 +303,9 @@ api_win_create( void(*callback_destroy)(void *callback)) { if (callbacks_win_exists(plugin_name, tag)) { + if (callback_destroy) { + callback_destroy(callback); + } return; } diff --git a/src/ui/window.c b/src/ui/window.c index 2bbb327c..3325a1d0 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -452,6 +452,7 @@ win_free(ProfWin* window) { ProfPluginWin *pluginwin = (ProfPluginWin*)window; free(pluginwin->tag); + free(pluginwin->plugin_name); break; } default: |