mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
rtmpsrc: Fix memory leaks
This commit is contained in:
parent
dd13e85ca1
commit
6aa4a71604
1 changed files with 4 additions and 6 deletions
|
@ -172,12 +172,10 @@ gst_rtmp_src_finalize (GObject * object)
|
|||
|
||||
g_free (rtmpsrc->uri);
|
||||
rtmpsrc->uri = NULL;
|
||||
|
||||
if (rtmpsrc->rtmp) {
|
||||
RTMP_Close (rtmpsrc->rtmp);
|
||||
RTMP_Free (rtmpsrc->rtmp);
|
||||
rtmpsrc->rtmp = NULL;
|
||||
}
|
||||
g_free (rtmpsrc->swf_url);
|
||||
rtmpsrc->swf_url = NULL;
|
||||
g_free (rtmpsrc->page_url);
|
||||
rtmpsrc->page_url = NULL;
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue