mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +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);
|
g_free (rtmpsrc->uri);
|
||||||
rtmpsrc->uri = NULL;
|
rtmpsrc->uri = NULL;
|
||||||
|
g_free (rtmpsrc->swf_url);
|
||||||
if (rtmpsrc->rtmp) {
|
rtmpsrc->swf_url = NULL;
|
||||||
RTMP_Close (rtmpsrc->rtmp);
|
g_free (rtmpsrc->page_url);
|
||||||
RTMP_Free (rtmpsrc->rtmp);
|
rtmpsrc->page_url = NULL;
|
||||||
rtmpsrc->rtmp = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue