don't free the filename too early.

2004-01-09  Sven Neumann  <sven@gimp.org>

	* app/gui/tips-dialog.c (tips_dialog_create): don't free the
	filename too early.
This commit is contained in:
Sven Neumann 2004-01-09 22:10:04 +00:00 committed by Sven Neumann
parent 90b2621ec2
commit 9022cc3a4b
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-01-09 Sven Neumann <sven@gimp.org>
* app/gui/tips-dialog.c (tips_dialog_create): don't free the
filename too early.
2004-01-09 Dave Neary <bolsh@gimp.org>
* app/display/gimpdisplayshell-scale.c: Modify behaviour of

View File

@ -83,7 +83,6 @@ tips_dialog_create (Gimp *gimp)
"gimp-tips.xml", NULL);
tips = gimp_tips_from_file (filename, &error);
g_free (filename);
if (!tips)
{
@ -112,6 +111,8 @@ tips_dialog_create (Gimp *gimp)
filename, error->message);
g_error_free (error);
}
g_free (filename);
}
tips_count = g_list_length (tips);

View File

@ -83,7 +83,6 @@ tips_dialog_create (Gimp *gimp)
"gimp-tips.xml", NULL);
tips = gimp_tips_from_file (filename, &error);
g_free (filename);
if (!tips)
{
@ -112,6 +111,8 @@ tips_dialog_create (Gimp *gimp)
filename, error->message);
g_error_free (error);
}
g_free (filename);
}
tips_count = g_list_length (tips);