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



commit 4a30c0b7ab2695d2a6937d17097372e80d08de5c
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]