aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-12-16 17:48:52 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-16 19:41:53 +0800
commit6ea60bb165253f1355d9fbfa1a5a010fb79c2c06 (patch)
tree49a5023d6167197d5675626d811c48993f1122ef /libempathy
parent52269e4ffc18cd85d3bec8970192e104e7fc0898 (diff)
downloadgsoc2013-empathy-6ea60bb165253f1355d9fbfa1a5a010fb79c2c06.tar
gsoc2013-empathy-6ea60bb165253f1355d9fbfa1a5a010fb79c2c06.tar.gz
gsoc2013-empathy-6ea60bb165253f1355d9fbfa1a5a010fb79c2c06.tar.bz2
gsoc2013-empathy-6ea60bb165253f1355d9fbfa1a5a010fb79c2c06.tar.lz
gsoc2013-empathy-6ea60bb165253f1355d9fbfa1a5a010fb79c2c06.tar.xz
gsoc2013-empathy-6ea60bb165253f1355d9fbfa1a5a010fb79c2c06.tar.zst
gsoc2013-empathy-6ea60bb165253f1355d9fbfa1a5a010fb79c2c06.zip
ft-factory: don't leak the handler
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-ft-factory.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libempathy/empathy-ft-factory.c b/libempathy/empathy-ft-factory.c
index 3443112a3..398474719 100644
--- a/libempathy/empathy-ft-factory.c
+++ b/libempathy/empathy-ft-factory.c
@@ -89,6 +89,17 @@ do_constructor (GType type,
}
static void
+empathy_ft_factory_dispose (GObject *object)
+{
+ EmpathyFTFactory *self = (EmpathyFTFactory *) object;
+ EmpathyFTFactoryPriv *priv = GET_PRIV (self);
+
+ tp_clear_object (&priv->handler);
+
+ (G_OBJECT_CLASS (empathy_ft_factory_parent_class)->dispose) (object);
+}
+
+static void
empathy_ft_factory_class_init (EmpathyFTFactoryClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
@@ -96,6 +107,7 @@ empathy_ft_factory_class_init (EmpathyFTFactoryClass *klass)
g_type_class_add_private (klass, sizeof (EmpathyFTFactoryPriv));
object_class->constructor = do_constructor;
+ object_class->dispose = empathy_ft_factory_dispose;
/**
* EmpathyFTFactory::new-ft-handler