diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-09-15 19:31:00 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-09-15 19:33:49 -0400 |
commit | ee8eb91523fcca2c7d0c783a3289e9f72bb74770 (patch) | |
tree | 661ce9417a1e18d6bb5f3c68ef6f92c09328d8cc /gtk/gtkwidgetpath.c | |
parent | 28c9f3d5da5afaafa7bc63413d3e9a552ed0664e (diff) | |
download | gtk+-ee8eb91523fcca2c7d0c783a3289e9f72bb74770.tar.gz |
widget path: Don't leak sibling paths
Diffstat (limited to 'gtk/gtkwidgetpath.c')
-rw-r--r-- | gtk/gtkwidgetpath.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c index 092ae6df09..0c309d3d8d 100644 --- a/gtk/gtkwidgetpath.c +++ b/gtk/gtkwidgetpath.c @@ -217,6 +217,8 @@ gtk_widget_path_unref (GtkWidgetPath *path) elem = &g_array_index (path->elems, GtkPathElement, i); gtk_css_node_declaration_unref (elem->decl); + if (elem->siblings) + gtk_widget_path_unref (elem->siblings); } g_array_free (path->elems, TRUE); |