* cosmetics
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Thu, 1 Jun 2006 08:42:40 +0000 (08:42 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Thu, 1 Jun 2006 08:42:40 +0000 (08:42 +0000)
pmo-trunk-r134

src/modest-account-mgr.c
src/modest-tny-account-store.c

index 56c213f..3ea2ed6 100644 (file)
@@ -96,8 +96,10 @@ modest_account_mgr_finalize (GObject * obj)
        ModestAccountMgr *self = MODEST_ACCOUNT_MGR (obj);
        ModestAccountMgrPrivate *priv = MODEST_ACCOUNT_MGR_GET_PRIVATE (self);
 
-       g_object_unref (G_OBJECT (priv->modest_conf));
-       priv->modest_conf = NULL;
+       if (priv->modest_conf) {
+               g_object_unref (G_OBJECT(priv->modest_conf));
+               priv->modest_conf = NULL;
+       }
 }
 
 GObject *
index d929607..254c775 100644 (file)
@@ -533,7 +533,9 @@ modest_tny_account_store_get_cache_dir (TnyAccountStoreIface *self)
 static const TnyDeviceIface*
 modest_tny_account_store_get_device (TnyAccountStoreIface *self)
 {
-       ModestTnyAccountStorePrivate *priv = MODEST_TNY_ACCOUNT_STORE_GET_PRIVATE (self);
+       ModestTnyAccountStorePrivate *priv;
+
+       priv = MODEST_TNY_ACCOUNT_STORE_GET_PRIVATE (self);
 
        return priv->device;
 }