From: Tim-Philipp Müller Date: Sat, 9 Aug 2014 13:41:35 +0000 (+0100) Subject: examples: fix another reference leak X-Git-Tag: 1.19.3~495^2~755 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04e69cf83b1c97382537032d9e39ce1b3e9cac9f;p=platform%2Fupstream%2Fgstreamer.git examples: fix another reference leak gst_rtsp_media_get_element() returns a new ref. --- diff --git a/examples/test-appsrc.c b/examples/test-appsrc.c index 125c642f96..33ce15bb39 100644 --- a/examples/test-appsrc.c +++ b/examples/test-appsrc.c @@ -87,6 +87,7 @@ media_configure (GstRTSPMediaFactory * factory, GstRTSPMedia * media, /* install the callback that will be called when a buffer is needed */ g_signal_connect (appsrc, "need-data", (GCallback) need_data, ctx); gst_object_unref (appsrc); + gst_object_unref (element); } int