nlesource: Don't leak pending seek event on dispose

This commit is contained in:
Seungha Yang 2019-02-05 17:29:00 +09:00 committed by Thibault Saunier
parent 08c70424c2
commit 4c94de3c38

View file

@ -160,6 +160,11 @@ nle_source_dispose (GObject * object)
priv->staticpad = NULL;
}
if (priv->seek_event) {
gst_event_unref (priv->seek_event);
priv->seek_event = NULL;
}
G_OBJECT_CLASS (parent_class)->dispose (object);
}