aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-09-26 17:00:52 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-09-26 17:00:52 +0200
commitb226f3fd6efdb883507ba798a33e5974331d1e85 (patch)
tree315c1dd0f2f797d446188ca4ba2cc943e3975652
parenta94288f2040965815eb2345b940a736632a06aaa (diff)
parente4002d584ae850b9c5e546fb638efe94a8e2b361 (diff)
downloadayatana-indicator-power-b226f3fd6efdb883507ba798a33e5974331d1e85.tar.gz
ayatana-indicator-power-b226f3fd6efdb883507ba798a33e5974331d1e85.tar.bz2
ayatana-indicator-power-b226f3fd6efdb883507ba798a33e5974331d1e85.zip
Merge lp:~/larsu/indicator-power/plug-get-icon-memory-leak
Plugs a small memory leak in indicator-power.c
-rw-r--r--src/indicator-power.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c
index f3a7235..9829839 100644
--- a/src/indicator-power.c
+++ b/src/indicator-power.c
@@ -508,6 +508,7 @@ get_image (IndicatorObject *io)
gicon = g_themed_icon_new (DEFAULT_ICON);
priv->status_image = GTK_IMAGE (gtk_image_new_from_gicon (gicon,
GTK_ICON_SIZE_LARGE_TOOLBAR));
+ g_object_unref (gicon);
}
return priv->status_image;