[gnome-shell] st-theme-node: Fix memory leak
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st-theme-node: Fix memory leak
- Date: Mon, 19 Dec 2011 14:49:03 +0000 (UTC)
commit f2cbddc19654f7910be0dc2e504af3f0d871ff8f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Dec 18 23:34:00 2011 -0500
st-theme-node: Fix memory leak
We ref the icon_colors in st_theme_node_get_icon_colors, but never
unref it.
src/st/st-theme-node.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c
index 79ec931..cc51498 100644
--- a/src/st/st-theme-node.c
+++ b/src/st/st-theme-node.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]