X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-singletons.c;h=ca28aeb711b7bc169c3a1acf686380063f9bae90;hp=76f6ec19e6fa0341a6b2cbb180adcfbe786052b1;hb=933732f81601fe26dae04147d56a9c0ef151271e;hpb=9f073d6025a94379ba9e17f3a5eff44bed3b9925 diff --git a/src/modest-singletons.c b/src/modest-singletons.c index 76f6ec1..ca28aeb 100644 --- a/src/modest-singletons.c +++ b/src/modest-singletons.c @@ -242,18 +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; } + 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; + } + /* 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