summaryrefslogtreecommitdiff
path: root/gst/rtsp-sink/gstrtspclientsink.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/rtsp-sink/gstrtspclientsink.c')
-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);