about summary refs log tree commit diff stats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/api.c3
1 files changed, 3 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;
     }