mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
timeline-element: Reset pointer after freeing
dispose can be called multiple times, make sure we don't call functions on free'd pointers.
This commit is contained in:
parent
855488f58e
commit
be5b9270ac
1 changed files with 3 additions and 1 deletions
|
@ -250,8 +250,10 @@ ges_timeline_element_dispose (GObject * object)
|
|||
{
|
||||
GESTimelineElement *self = GES_TIMELINE_ELEMENT (object);
|
||||
|
||||
if (self->priv->children_props)
|
||||
if (self->priv->children_props) {
|
||||
g_hash_table_unref (self->priv->children_props);
|
||||
self->priv->children_props = NULL;
|
||||
}
|
||||
|
||||
g_clear_object (&self->priv->copied_from);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue