diff options
author | Seungha Yang <sh.yang@lge.com> | 2017-02-17 21:25:21 +0900 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-02-21 13:11:25 +0000 |
commit | b1efa8d4993fc5095c83fe27694ba9c225f70efd (patch) | |
tree | 5e129ee4f0d7333e1d97cee0f002b0af02b5ac9b | |
parent | 63e280df22073f06dc35a5cab03dad5d509eca71 (diff) | |
download | gstreamer-plugins-bad-b1efa8d4993fc5095c83fe27694ba9c225f70efd.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 e592563b6..861140234 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); } |