Plugins: Added callbacks init and close functions

Included destroy function in PluginWindowCallback
This commit is contained in:
James Booth
2016-03-07 20:36:25 +00:00
parent 4094b75ccc
commit 5cabcf9b79
6 changed files with 37 additions and 7 deletions

View File

@@ -167,7 +167,7 @@ c_api_win_create(char *tag, void(*callback)(char *tag, char *line))
{
WindowWrapper *wrapper = malloc(sizeof(WindowWrapper));
wrapper->func = callback;
api_win_create(tag, wrapper, c_window_callback);
api_win_create(tag, wrapper, free, c_window_callback);
}
static int