[network-manager-applet/th/applet-icon-crash-bgo762421: 2/6] applet: fix leaking @loader in nma_icons_reload()
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/th/applet-icon-crash-bgo762421: 2/6] applet: fix leaking @loader in nma_icons_reload()
- Date: Wed, 24 Feb 2016 19:00:41 +0000 (UTC)
commit f319c152799700f8ab3660f6d2bee91f13b7052a
Author: Thomas Haller <thaller redhat com>
Date: Wed Feb 24 18:39:40 2016 +0100
applet: fix leaking @loader in nma_icons_reload()
src/applet.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index b735700..cdd984f 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -2966,7 +2966,7 @@ static gboolean
nma_icons_reload (NMApplet *applet)
{
GError *error = NULL;
- GdkPixbufLoader *loader;
+ gs_unref_object GdkPixbufLoader *loader = NULL;
g_return_val_if_fail (applet->icon_size > 0, FALSE);
@@ -2989,7 +2989,6 @@ nma_icons_reload (NMApplet *applet)
applet->fallback_icon = gdk_pixbuf_loader_get_pixbuf (loader);
g_object_ref (applet->fallback_icon);
g_assert (applet->fallback_icon);
- g_object_unref (loader);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]