Commit 9c40eeeb authored by Peter Kjellerstedt's avatar Peter Kjellerstedt
Browse files

rtsp: Plug a memory leak.

Free memory related to any partially read and/or written RTSP messages.
parent 38e59ec7
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment