mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue