Commit c448cc7d authored by Michael Natterer's avatar Michael Natterer 😴

app: really really destroy the tool options widgets this time

parent 44e6acbe
......@@ -235,7 +235,10 @@ gimp_tools_exit (Gimp *gimp)
options_gui = g_object_get_data (G_OBJECT (tool_info->tool_options),
g_object_unref (options_gui);
gtk_widget_destroy (options_gui);
g_object_set_data (G_OBJECT (tool_info->tool_options),
"gimp-tool-options-gui", NULL);
tool_manager_exit (gimp);
......@@ -355,9 +358,10 @@ gimp_tools_restore (Gimp *gimp)
gtk_widget_show (label);
g_object_set_data (G_OBJECT (tool_info->tool_options),
g_object_ref_sink (options_gui));
g_object_set_data_full (G_OBJECT (tool_info->tool_options),
g_object_ref_sink (options_gui),
(GDestroyNotify) g_object_unref);
if (tool_info->presets)
gimp_tool_presets_load (tool_info->presets, NULL);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment