nleobject: don't leak srcpad when disposing

https://bugzilla.gnome.org/show_bug.cgi?id=754867
This commit is contained in:
Justin Kim 2015-09-11 16:13:19 +09:00 committed by Thibault Saunier
parent fe2165cad3
commit 937217021e

View file

@ -299,6 +299,11 @@ nle_object_dispose (GObject * object)
nle->caps = NULL; nle->caps = NULL;
} }
if (nle->srcpad) {
nle_object_remove_ghost_pad (nle, nle->srcpad);
nle->srcpad = NULL;
}
G_OBJECT_CLASS (parent_class)->dispose (object); G_OBJECT_CLASS (parent_class)->dispose (object);
} }