mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 03:56:16 +00:00
hlssink: do not leak playlist object
In finalize, also release the playlist
This commit is contained in:
parent
5c4ebaca4f
commit
a99175a31a
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,8 @@ gst_hls_sink_finalize (GObject * object)
|
||||||
g_free (sink->location);
|
g_free (sink->location);
|
||||||
g_free (sink->playlist_location);
|
g_free (sink->playlist_location);
|
||||||
g_free (sink->playlist_root);
|
g_free (sink->playlist_root);
|
||||||
|
if (sink->playlist)
|
||||||
|
gst_m3u8_playlist_free (sink->playlist);
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->finalize ((GObject *) sink);
|
G_OBJECT_CLASS (parent_class)->finalize ((GObject *) sink);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue