summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2016-02-24 00:10:52 +1100
committerJan Schmidt <jan@centricular.com>2016-02-24 02:12:08 +1100
commitb96e4e16a74ff51dfa58994173c45c1906c92b77 (patch)
tree63ca8da482940f702b381fa2183729276a359de0 /gst
parenta6367c59711cbf8811e0f4e170ca1c2ee8abf974 (diff)
rtspsink: Fix some leaks in rtspclientsink and the unit test.
https://bugzilla.gnome.org/show_bug.cgi?id=762525
Diffstat (limited to 'gst')
-rw-r--r--gst/rtsp-sink/gstrtspclientsink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/rtsp-sink/gstrtspclientsink.c b/gst/rtsp-sink/gstrtspclientsink.c
index e7706a4..aeb8342 100644
--- a/gst/rtsp-sink/gstrtspclientsink.c
+++ b/gst/rtsp-sink/gstrtspclientsink.c
@@ -1047,6 +1047,8 @@ gst_rtsp_client_sink_sinkpad_event (GstPad * pad, GstObject * parent,
gst_event_unref (event);
return FALSE;
}
+ } else {
+ gst_object_unref (target);
}
}
@@ -1071,6 +1073,7 @@ gst_rtsp_client_sink_sinkpad_query (GstPad * pad, GstObject * parent,
return TRUE;
}
+ gst_object_unref (target);
}
return gst_pad_query_default (pad, parent, query);