Changeset 77

Show
Ignore:
Timestamp:
04/15/08 18:48:03
Author:
pvanhoof
Message:

Bugfix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/tmut-account-manager.c

    r76 r77  
    159159        TMutAccountManagerPriv *priv = TMUT_ACCOUNT_MANAGER_GET_PRIVATE (self); 
    160160 
    161         tmut_account_store_delete_account (TMUT_ACCOUNT_STORE (priv->account_store), 
    162                 priv->account); 
    163  
    164         g_object_unref (priv->account); 
    165         priv->account = NULL; 
     161        if (priv->account) { 
     162                tmut_account_store_delete_account (TMUT_ACCOUNT_STORE (priv->account_store), 
     163                        priv->account); 
     164                g_object_unref (priv->account); 
     165                priv->account = NULL; 
     166        } 
    166167 
    167168        return;