From 378812a8cb5c05a5e2138a5cad8986b9136b7add Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 10 Feb 2008 19:01:35 +0000 Subject: [PATCH] Added an exit_hook (using 'add_gui_exit_hook') to avoid a memory leak (anyway it's at the end of the program, so it wasn't a problem). --- src/commands/cmd_configure_tools.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/cmd_configure_tools.c b/src/commands/cmd_configure_tools.c index a67a4cc22..5e13d85c2 100644 --- a/src/commands/cmd_configure_tools.c +++ b/src/commands/cmd_configure_tools.c @@ -1,5 +1,5 @@ /* ASE - Allegro Sprite Editor - * Copyright (C) 2007, 2008 David A. Capello + * Copyright (C) 2001-2008 David A. Capello * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -193,6 +193,8 @@ static void cmd_configure_tools_execute(const char *argument) HOOK(spray_width, JI_SIGNAL_SLIDER_CHANGE, spray_width_slider_change_hook, 0); HOOK(cursor_color, SIGNAL_COLOR_BUTTON_CHANGE, cursor_button_change_hook, 0); HOOK(check_onionskin, JI_SIGNAL_CHECK_CHANGE, onionskin_check_change_hook, 0); + + add_gui_exit_hook(jwidget_free, window); } /* default position */