aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-09-25 09:58:35 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-09-25 09:58:35 +0200
commite4002d584ae850b9c5e546fb638efe94a8e2b361 (patch)
tree315c1dd0f2f797d446188ca4ba2cc943e3975652
parenta94288f2040965815eb2345b940a736632a06aaa (diff)
downloadayatana-indicator-power-e4002d584ae850b9c5e546fb638efe94a8e2b361.tar.gz
ayatana-indicator-power-e4002d584ae850b9c5e546fb638efe94a8e2b361.tar.bz2
ayatana-indicator-power-e4002d584ae850b9c5e546fb638efe94a8e2b361.zip
get_icon: Plug memory leak
-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;