X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-singletons.c;h=76f6ec19e6fa0341a6b2cbb180adcfbe786052b1;hp=09249b0b63a2c92326851fe2e137899e35a2125f;hb=7df38f78cb5481006cbd14cb24cc5abb8f0226f9;hpb=f68f57e6aa049365b5be5b3a072145403445c97f diff --git a/src/modest-singletons.c b/src/modest-singletons.c index 09249b0..76f6ec1 100644 --- a/src/modest-singletons.c +++ b/src/modest-singletons.c @@ -242,6 +242,18 @@ modest_singletons_finalize (GObject *obj) priv->email_clipboard = NULL; } + if (priv->plugin_factory) { + MODEST_DEBUG_VERIFY_OBJECT_LAST_REF(priv->plugin_factory,""); + g_object_unref (G_OBJECT(priv->plugin_factory)); + priv->plugin_factory = NULL; + } + + if (priv->protocol_registry) { + MODEST_DEBUG_VERIFY_OBJECT_LAST_REF(priv->protocol_registry,""); + g_object_unref (G_OBJECT(priv->protocol_registry)); + priv->protocol_registry = NULL; + } + /* It is important that the account manager is uninitialized after * the mail op queue is uninitialized because the mail op queue * cancells any mail operations which in turn access the account