mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
Fix use-after-free in _free_pending_clip()
https://bugzilla.gnome.org/show_bug.cgi?id=725855
This commit is contained in:
parent
85e9d15d97
commit
4170ed1721
1 changed files with 1 additions and 1 deletions
|
@ -537,7 +537,6 @@ _free_pending_effect (PendingEffects * pend)
|
|||
static void
|
||||
_free_pending_clip (GESBaseXmlFormatterPrivate * priv, PendingClip * pend)
|
||||
{
|
||||
g_free (pend->id);
|
||||
gst_object_unref (pend->layer);
|
||||
if (pend->properties)
|
||||
gst_structure_free (pend->properties);
|
||||
|
@ -545,6 +544,7 @@ _free_pending_clip (GESBaseXmlFormatterPrivate * priv, PendingClip * pend)
|
|||
g_list_free_full (pend->pending_bindings,
|
||||
(GDestroyNotify) _free_pending_binding);
|
||||
g_hash_table_remove (priv->clipid_pendings, pend->id);
|
||||
g_free (pend->id);
|
||||
g_slice_free (PendingClip, pend);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue