diff options
author | Seungha Yang <sh.yang@lge.com> | 2017-02-17 21:25:21 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-02-22 11:13:43 +0200 |
commit | 2bf5a6958185603217140f043924467394046f04 (patch) | |
tree | 1c962a30dfbe7f34887306f902a423bf6dea627d | |
parent | 668e6bbdab82a0d0e623971a00276f06f8befc38 (diff) | |
download | gstreamer-plugins-bad-2bf5a6958185603217140f043924467394046f04.tar.gz |
hlsdemux: Fix GHashTable leak
https://bugzilla.gnome.org/show_bug.cgi?id=778828
-rw-r--r-- | ext/hls/gsthlsdemux.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 3e82d58e9..3ba22c7bd 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -123,6 +123,10 @@ gst_hls_demux_finalize (GObject * obj) gst_hls_demux_reset (GST_ADAPTIVE_DEMUX_CAST (demux)); g_mutex_clear (&demux->keys_lock); + if (demux->keys) { + g_hash_table_unref (demux->keys); + demux->keys = NULL; + } G_OBJECT_CLASS (parent_class)->finalize (obj); } |