Fix memory leaks when using add_objects

This commit is contained in:
Paolo Borelli 2009-08-14 11:33:47 +02:00
parent 0696bc8e86
commit 03018f1d01

View File

@ -380,8 +380,13 @@ parse_object (GMarkupParseContext *context,
data->inside_requested_object = TRUE;
}
else
{
g_free (object_class);
g_free (object_id);
g_free (constructor);
return;
}
}
object_info = g_slice_new0 (ObjectInfo);
object_info->class_name = object_class;