[gnome-media/gnome-2-28] Fix GvcChannelMap leak



commit a1c4906d4d76db22ee781ea732fdf439d048aaed
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 2 10:38:49 2010 +0000

    Fix GvcChannelMap leak
    
    For each created GvcMixerStream, we created a new channel map.
    Make sure it's unref'ed when we're done with it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=605694

 gnome-volume-control/src/gvc-mixer-stream.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gnome-volume-control/src/gvc-mixer-stream.c b/gnome-volume-control/src/gvc-mixer-stream.c
index 4662d46..59c1f3c 100644
--- a/gnome-volume-control/src/gvc-mixer-stream.c
+++ b/gnome-volume-control/src/gvc-mixer-stream.c
@@ -844,6 +844,9 @@ gvc_mixer_stream_finalize (GObject *object)
 
         g_return_if_fail (mixer_stream->priv != NULL);
 
+        g_object_unref (mixer_stream->priv->channel_map);
+        mixer_stream->priv->channel_map = NULL;
+
         g_free (mixer_stream->priv->name);
         mixer_stream->priv->name = NULL;
 



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