Commit 412c5b18 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

reverted last change as it is totally bogus and the old code was correct.

2008-12-14  Sven Neumann  <sven@gimp.org>

	* app/core/gimp.c: reverted last change as it is totally bogus 
and
	the old code was correct.


svn path=/trunk/; revision=27788
parent fbb4a7c9
2008-12-14 Sven Neumann <sven@gimp.org>
* app/core/gimp.c: reverted last change as it is totally bogus and
the old code was correct.
2008-12-13 Martin Nordholts <martinn@svn.gnome.org>
* app/core/gimp.c: We shall unref in dispose() and free in
......
......@@ -269,6 +269,29 @@ gimp_dispose (GObject *object)
{
Gimp *gimp = GIMP (object);
if (gimp->be_verbose)
g_print ("EXIT: %s\n", G_STRFUNC);
if (gimp->brush_factory)
gimp_data_factory_data_free (gimp->brush_factory);
if (gimp->pattern_factory)
gimp_data_factory_data_free (gimp->pattern_factory);
if (gimp->gradient_factory)
gimp_data_factory_data_free (gimp->gradient_factory);
if (gimp->palette_factory)
gimp_data_factory_data_free (gimp->palette_factory);
G_OBJECT_CLASS (parent_class)->dispose (object);
}
static void
gimp_finalize (GObject *object)
{
Gimp *gimp = GIMP (object);
if (gimp->be_verbose)
g_print ("EXIT: %s\n", G_STRFUNC);
......@@ -409,29 +432,6 @@ gimp_dispose (GObject *object)
gimp->context_list = NULL;
}
G_OBJECT_CLASS (parent_class)->dispose (object);
}
static void
gimp_finalize (GObject *object)
{
Gimp *gimp = GIMP (object);
if (gimp->be_verbose)
g_print ("EXIT: %s\n", G_STRFUNC);
if (gimp->brush_factory)
gimp_data_factory_data_free (gimp->brush_factory);
if (gimp->pattern_factory)
gimp_data_factory_data_free (gimp->pattern_factory);
if (gimp->gradient_factory)
gimp_data_factory_data_free (gimp->gradient_factory);
if (gimp->palette_factory)
gimp_data_factory_data_free (gimp->palette_factory);
gimp_units_exit (gimp);
G_OBJECT_CLASS (parent_class)->finalize (object);
......
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