[gnome-bluetooth] Fix small memleak when changing the tooltip



commit 129ae1b936a8ec6513cec1ee0ab64bfec2da1e9a
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Jul 26 16:27:27 2009 +0100

    Fix small memleak when changing the tooltip
    
    When changing the tooltip of the applet, don't forget to free
    the old tooltip...

 applet/notify.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/applet/notify.c b/applet/notify.c
index f4dd3b5..e1f3ebc 100644
--- a/applet/notify.c
+++ b/applet/notify.c
@@ -149,6 +149,7 @@ void set_icon(gboolean enabled)
 
 	if (statusicon == NULL) {
 		g_free (icon_name);
+		g_free (tooltip);
 		icon_name = g_strdup (name);
 		tooltip = g_strdup (_tooltip);
 	} else {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]