rtsp: Plug a memory leak.
Free memory related to any partially read and/or written RTSP messages.
This commit is contained in:
parent
38e59ec75d
commit
9c40eeeb4c
@ -2811,10 +2811,13 @@ gst_rtsp_source_finalize (GSource * source)
|
|||||||
GstRTSPWatch *watch = (GstRTSPWatch *) source;
|
GstRTSPWatch *watch = (GstRTSPWatch *) source;
|
||||||
|
|
||||||
build_reset (&watch->builder);
|
build_reset (&watch->builder);
|
||||||
|
gst_rtsp_message_unset (&watch->message);
|
||||||
|
|
||||||
g_async_queue_unref (watch->messages);
|
g_async_queue_unref (watch->messages);
|
||||||
watch->messages = NULL;
|
watch->messages = NULL;
|
||||||
|
|
||||||
|
g_free (watch->write_data);
|
||||||
|
|
||||||
if (watch->notify)
|
if (watch->notify)
|
||||||
watch->notify (watch->user_data);
|
watch->notify (watch->user_data);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user