plug memory leak: Fixes #305990

2005-05-31  Maurits Rijk  <m.rijk@chello.nl>

	* plug-ins/gfig/gfig-dobject.c: plug memory leak: Fixes #305990
This commit is contained in:
Maurits Rijk 2005-05-31 18:17:02 +00:00 committed by Maurits Rijk
parent 2fc3ba5e7a
commit ccfcaee1dc
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,7 @@ d_load_object (gchar *desc,
if (sscanf (buf, "%d", &new_obj->type_data) != 1)
{
g_message ("Error while loading object (no type data)");
g_free (new_obj);
return NULL;
}
@ -143,6 +144,7 @@ d_load_object (gchar *desc,
if (strcmp ("</EXTRA>", buf))
{
g_message ("Syntax error while loading object");
g_free (new_obj);
return NULL;
}
/* Go around and read the last line */