[gnome-settings-daemon] media-keys: Fix small memory leak



commit 166270528c6e440add9a0b19c4af5a353e7f274f
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Jan 13 00:43:34 2013 +0100

    media-keys: Fix small memory leak
    
    Still, leaking a full list of sinks every time we pressed
    the volume key...

 plugins/media-keys/gsd-media-keys-manager.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index 83f0538..98192cf 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -1063,6 +1063,8 @@ get_stream_for_device_id (GsdMediaKeysManager *manager,
 			break;
 	}
 
+	g_slist_free (sinks);
+
 	if (res)
 		g_hash_table_insert (manager->priv->streams,
 				     GUINT_TO_POINTER (deviceid),



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