Fixed memory leak
authorP. F. Chimento <philip.chimento@gmail.com>
Sun, 30 Jan 2011 15:05:35 +0000 (16:05 +0100)
committerP. F. Chimento <philip.chimento@gmail.com>
Sun, 30 Jan 2011 15:05:35 +0000 (16:05 +0100)
libchimara/schannel.c

index 93146b1ed843db80046aa8a8f30e9235e7df66a5..e9f705245111d5418c939bee0949c7744f61c315 100644 (file)
@@ -429,6 +429,7 @@ glk_schannel_play_ext(schanid_t chan, glui32 snd, glui32 repeats, glui32 notify)
 
        chan->repeats = repeats;
        g_object_set(chan->source, "stream", stream, NULL);
+       g_object_unref(stream); /* Now owned by GStreamer element */
        
        if(!gst_element_set_state(chan->pipeline, GST_STATE_PLAYING)) {
                WARNING_S(_("Could not set GstElement state to"), "PLAYING");