diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index e7b57d9171..066734e13d 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -2811,10 +2811,13 @@ gst_rtsp_source_finalize (GSource * source) GstRTSPWatch *watch = (GstRTSPWatch *) source; build_reset (&watch->builder); + gst_rtsp_message_unset (&watch->message); g_async_queue_unref (watch->messages); watch->messages = NULL; + g_free (watch->write_data); + if (watch->notify) watch->notify (watch->user_data); }