From e4002d584ae850b9c5e546fb638efe94a8e2b361 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Tue, 25 Sep 2012 09:58:35 +0200 Subject: get_icon: Plug memory leak --- src/indicator-power.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3