From: P. F. Chimento Date: Sun, 30 Jan 2011 15:05:35 +0000 (+0100) Subject: Fixed memory leak X-Git-Tag: v0.9~152^2~3 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=2dfa6eb26fe1b7e34e9ecf16b02a6f3254aded81;p=projects%2Fchimara%2Fchimara.git Fixed memory leak --- 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");