mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
st-theme-node: Fix memory leak
We ref the icon_colors in st_theme_node_get_icon_colors, but never unref it.
This commit is contained in:
parent
c7846e172f
commit
f2cbddc196
1 changed files with 6 additions and 0 deletions
|
|
@ -90,6 +90,12 @@ st_theme_node_dispose (GObject *gobject)
|
|||
node->border_image = NULL;
|
||||
}
|
||||
|
||||
if (node->icon_colors)
|
||||
{
|
||||
st_icon_colors_unref (node->icon_colors);
|
||||
node->icon_colors = NULL;
|
||||
}
|
||||
|
||||
G_OBJECT_CLASS (st_theme_node_parent_class)->dispose (gobject);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue