don't free the writer struct too early.

2007-07-17  Sven Neumann  <sven@gimp.org>

	* libgimpconfig/gimpconfigwriter.c (gimp_config_writer_finish):
	don't free the writer struct too early.


svn path=/trunk/; revision=22939
This commit is contained in:
Sven Neumann 2007-07-17 06:21:54 +00:00 committed by Sven Neumann
parent b56e206d0b
commit a9efcaa935
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-07-17 Sven Neumann <sven@gimp.org>
* libgimpconfig/gimpconfigwriter.c (gimp_config_writer_finish):
don't free the writer struct too early.
2007-07-16 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-new.c (gimp_image_new_get_last_template): sync

View File

@ -545,14 +545,14 @@ gimp_config_writer_finish (GimpConfigWriter *writer,
success = TRUE;
}
g_slice_free (GimpConfigWriter, writer);
if (writer->error)
{
g_propagate_error (error, writer->error);
return FALSE;
success = FALSE;
}
g_slice_free (GimpConfigWriter, writer);
return success;
}