From c0237214f16942fb14908219296820fd5aa195ba Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 7 Sep 2009 20:41:26 -0700 Subject: [PATCH] Fix element leak --- src/stream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stream.cpp b/src/stream.cpp index 795f377..7d2954f 100644 --- a/src/stream.cpp +++ b/src/stream.cpp @@ -974,6 +974,7 @@ struct gstStream : public alureStream { GstElement *gstSink = gst_bin_get_by_name(GST_BIN(gstPipeline), "alureSink"); while(outTotal < outLen && !gst_app_sink_is_eos((GstAppSink*)gstSink)) on_new_buffer_from_source(gstSink); + gst_object_unref(gstSink); return outTotal; } -- 2.11.4.GIT