Do not leak unapplied layout properties

If the layout manager does not have a GtkLayoutChild, or if we cannot
apply layout properties, we should free them instead of leaking them.
This commit is contained in:
Emmanuele Bassi 2019-03-28 17:22:02 +00:00
parent ecba428d52
commit 208cae2f05

View File

@ -10478,6 +10478,8 @@ gtk_widget_buildable_custom_finished (GtkBuildable *buildable,
parent,
layout_data);
/* Free the unapplied properties, if any */
g_slist_free_full (layout_data->properties, layout_property_info_free);
g_object_unref (layout_data->object);
g_slice_free (LayoutParserData, layout_data);
}