hlsdemux: Fix GHashTable leak
https://bugzilla.gnome.org/show_bug.cgi?id=778828
This commit is contained in:
parent
63e280df22
commit
b1efa8d499
@ -123,6 +123,10 @@ gst_hls_demux_finalize (GObject * obj)
|
|||||||
|
|
||||||
gst_hls_demux_reset (GST_ADAPTIVE_DEMUX_CAST (demux));
|
gst_hls_demux_reset (GST_ADAPTIVE_DEMUX_CAST (demux));
|
||||||
g_mutex_clear (&demux->keys_lock);
|
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);
|
G_OBJECT_CLASS (parent_class)->finalize (obj);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user