From 937217021e484a59afd720c580a9901fe38d4626 Mon Sep 17 00:00:00 2001 From: Justin Kim Date: Fri, 11 Sep 2015 16:13:19 +0900 Subject: [PATCH] nleobject: don't leak srcpad when disposing https://bugzilla.gnome.org/show_bug.cgi?id=754867 --- plugins/nle/nleobject.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/nle/nleobject.c b/plugins/nle/nleobject.c index 94be16d22e..bccf8d24c6 100644 --- a/plugins/nle/nleobject.c +++ b/plugins/nle/nleobject.c @@ -299,6 +299,11 @@ nle_object_dispose (GObject * object) nle->caps = NULL; } + if (nle->srcpad) { + nle_object_remove_ghost_pad (nle, nle->srcpad); + nle->srcpad = NULL; + } + G_OBJECT_CLASS (parent_class)->dispose (object); }