projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38e59ec
)
rtsp: Plug a memory leak.
author
Peter Kjellerstedt
<pkj@axis.com>
Tue, 9 Jun 2009 14:28:20 +0000
(16:28 +0200)
committer
Peter Kjellerstedt
<pkj@axis.com>
Tue, 9 Jun 2009 14:28:20 +0000
(16:28 +0200)
Free memory related to any partially read and/or written RTSP messages.
gst-libs/gst/rtsp/gstrtspconnection.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/rtsp/gstrtspconnection.c
b/gst-libs/gst/rtsp/gstrtspconnection.c
index
e7b57d9
..
066734e
100644
(file)
--- 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);
}