From 2dfa6eb26fe1b7e34e9ecf16b02a6f3254aded81 Mon Sep 17 00:00:00 2001 From: "P. F. Chimento" Date: Sun, 30 Jan 2011 16:05:35 +0100 Subject: [PATCH] Fixed memory leak --- libchimara/schannel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libchimara/schannel.c b/libchimara/schannel.c index 93146b1..e9f7052 100644 --- a/libchimara/schannel.c +++ b/libchimara/schannel.c @@ -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"); -- 2.30.2