examples: fix another reference leak
authorTim-Philipp Müller <tim@centricular.com>
Sat, 9 Aug 2014 13:41:35 +0000 (14:41 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Aug 2014 13:41:35 +0000 (14:41 +0100)
gst_rtsp_media_get_element() returns a new ref.

examples/test-appsrc.c

index 125c642f960986a882ff3bb3ab5b2ccbaa14490a..33ce15bb39e0cf5a61295ea5db8b901d9b09fa51 100644 (file)
@@ -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