From 7abf5062612d15f457a9246b90393dab769437a6 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 13 Jul 2016 00:25:45 +0100 Subject: Free memory when plugin windows closed --- src/plugins/api.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins') 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; } -- cgit 1.4.1-2-gfad0