[Xfce4-commits] <xfce4-diskperf-plugin:master> unref the icon after use

Landry Breuil noreply at xfce.org
Mon Apr 9 19:06:27 CEST 2012


Updating branch refs/heads/master
         to c1244ca5c0f0d6735530c44219915501796549a4 (commit)
       from 0e25d34ce8995e27a898e429104efabf001f9216 (commit)

commit c1244ca5c0f0d6735530c44219915501796549a4
Author: Landry Breuil <landry at xfce.org>
Date:   Mon Apr 9 18:16:54 2012 +0200

    unref the icon after use

 panel-plugin/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index 91ddc66..05ce707 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -912,6 +912,8 @@ static void About (Widget_t w, void *unused)
       "website", "http://goodies.xfce.org/projects/panel-plugins/xfce4-diskperf-plugin",
       "copyright", _("Copyright (c) 2003, 2004 Roger Seguin"),
       "authors", auth, NULL);
+   if(icon)
+      g_object_unref(G_OBJECT(icon));
 }				/* About() */
 
 	/**************************************************************/


More information about the Xfce4-commits mailing list