widget path: Don't leak sibling paths

This commit is contained in:
Matthias Clasen 2015-09-15 19:31:00 -04:00
parent 28c9f3d5da
commit ee8eb91523

View File

@ -217,6 +217,8 @@ gtk_widget_path_unref (GtkWidgetPath *path)
elem = &g_array_index (path->elems, GtkPathElement, i); elem = &g_array_index (path->elems, GtkPathElement, i);
gtk_css_node_declaration_unref (elem->decl); gtk_css_node_declaration_unref (elem->decl);
if (elem->siblings)
gtk_widget_path_unref (elem->siblings);
} }
g_array_free (path->elems, TRUE); g_array_free (path->elems, TRUE);