forked from AuroraMiddleware/gtk
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:
parent
ecba428d52
commit
208cae2f05
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user