[gnome-media] Fix small memleak



commit 5dc5fe5313e9c4929d2d3b7a20518a3e7aed18f2
Author: Bastien Nocera <hadess hadess net>
Date:   Tue May 5 16:52:36 2009 +0100

    Fix small memleak
    
    The theme_name was leaked in on_combobox_changed().
---
 sound-theme/gvc-sound-theme-chooser.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/sound-theme/gvc-sound-theme-chooser.c b/sound-theme/gvc-sound-theme-chooser.c
index b3ee375..dfd9513 100644
--- a/sound-theme/gvc-sound-theme-chooser.c
+++ b/sound-theme/gvc-sound-theme-chooser.c
@@ -119,6 +119,8 @@ on_combobox_changed (GtkComboBox          *widget,
         gconf_client_set_string (client, SOUND_THEME_KEY, theme_name, NULL);
         g_object_unref (client);
 
+        g_free (theme_name);
+
         /* FIXME: reset alert model */
 }
 



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