rtsp: Plug a memory leak.

Free memory related to any partially read and/or written RTSP messages.
This commit is contained in:
Peter Kjellerstedt 2009-06-09 16:28:20 +02:00
parent 38e59ec75d
commit 9c40eeeb4c

View file

@ -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);
}