summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Kim <justin.kim@collabora.com>2015-09-11 16:13:19 +0900
committerThibault Saunier <tsaunier@gnome.org>2015-09-11 13:09:40 +0200
commit937217021e484a59afd720c580a9901fe38d4626 (patch)
treeb75b71743b9dfe4986674460c9c225fa088c413e
parentfe2165cad3f249f706b4304d52764b6fa14c82d1 (diff)
nleobject: don't leak srcpad when disposing
https://bugzilla.gnome.org/show_bug.cgi?id=754867
-rw-r--r--plugins/nle/nleobject.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/nle/nleobject.c b/plugins/nle/nleobject.c
index 94be16d2..bccf8d24 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);
}