Remove plugin window on /close

This commit is contained in:
James Booth
2016-07-12 02:16:12 +01:00
parent 1a7eb00763
commit 5f393a6d9f
11 changed files with 28 additions and 7 deletions

View File

@@ -238,13 +238,14 @@ win_create_xmlconsole(void)
}
ProfWin*
win_create_plugin(const char *const tag)
win_create_plugin(const char *const plugin_name, const char *const tag)
{
ProfPluginWin *new_win = malloc(sizeof(ProfPluginWin));
new_win->super.type = WIN_PLUGIN;
new_win->super.layout = _win_create_simple_layout();
new_win->tag = strdup(tag);
new_win->plugin_name = strdup(plugin_name);
new_win->memcheck = PROFPLUGINWIN_MEMCHECK;