Commit 55719c2e authored by Paolo Borelli's avatar Paolo Borelli

Plug small leak on error path

parent 65fae1b9
......@@ -1123,14 +1123,18 @@ gedit_utils_get_ui_objects (const gchar *filename,
builder = gtk_builder_new ();
if (root_objects != NULL)
{
gtk_builder_add_objects_from_file (builder,
filename,
root_objects,
&error);
}
else
{
gtk_builder_add_from_file (builder,
filename,
&error);
}
if (error != NULL)
{
......@@ -1139,6 +1143,7 @@ gedit_utils_get_ui_objects (const gchar *filename,
error->message);
g_error_free (error);
g_free (filename_markup);
g_object_unref (builder);
return FALSE;
}
......
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