[gnome-shell/gnome-3-2] st-theme-node: Fix memory leak
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-2] st-theme-node: Fix memory leak
- Date: Wed, 18 Jan 2012 15:32:13 +0000 (UTC)
commit 3bf11dbd311b40a2a2019974c69761bdb45ced12
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 1c2856b..e12be8e 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]