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:
Edward Hervey 2016-08-13 11:08:34 +02:00 committed by Edward Hervey
parent 855488f58e
commit be5b9270ac

View file

@ -250,8 +250,10 @@ ges_timeline_element_dispose (GObject * object)
{ {
GESTimelineElement *self = GES_TIMELINE_ELEMENT (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); g_hash_table_unref (self->priv->children_props);
self->priv->children_props = NULL;
}
g_clear_object (&self->priv->copied_from); g_clear_object (&self->priv->copied_from);
} }