diff options
author | Sushma Rai <rsushma@src.gnome.org> | 2006-02-27 17:11:33 +0800 |
---|---|---|
committer | Sushma Rai <rsushma@src.gnome.org> | 2006-02-27 17:11:33 +0800 |
commit | 6b93ed2f65445dca1ebcd1dc6d41b701aa3f1595 (patch) | |
tree | cf861faeb7967e431b6b0747d73a678925481be4 /plugins/exchange-operations/exchange-calendar.c | |
parent | 42ac56f944d7e9c6f227da330d3709c4407a112f (diff) | |
download | gsoc2013-evolution-6b93ed2f65445dca1ebcd1dc6d41b701aa3f1595.tar gsoc2013-evolution-6b93ed2f65445dca1ebcd1dc6d41b701aa3f1595.tar.gz gsoc2013-evolution-6b93ed2f65445dca1ebcd1dc6d41b701aa3f1595.tar.bz2 gsoc2013-evolution-6b93ed2f65445dca1ebcd1dc6d41b701aa3f1595.tar.lz gsoc2013-evolution-6b93ed2f65445dca1ebcd1dc6d41b701aa3f1595.tar.xz gsoc2013-evolution-6b93ed2f65445dca1ebcd1dc6d41b701aa3f1595.tar.zst gsoc2013-evolution-6b93ed2f65445dca1ebcd1dc6d41b701aa3f1595.zip |
NULL check for accounts. Fixes #332185.
svn path=/trunk/; revision=31590
Diffstat (limited to 'plugins/exchange-operations/exchange-calendar.c')
-rw-r--r-- | plugins/exchange-operations/exchange-calendar.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/exchange-operations/exchange-calendar.c b/plugins/exchange-operations/exchange-calendar.c index e316dc2421..c6291cfb5a 100644 --- a/plugins/exchange-operations/exchange-calendar.c +++ b/plugins/exchange-operations/exchange-calendar.c @@ -159,7 +159,6 @@ e_exchange_calendar_pcalendar (EPlugin *epl, EConfigHookItemFactoryData *data) char *offline_msg; GtkWidget *lbl_offline_msg; - if (!hidden) hidden = gtk_label_new (""); @@ -212,6 +211,10 @@ e_exchange_calendar_pcalendar (EPlugin *epl, EConfigHookItemFactoryData *data) /* REVIEW: Should this handle be freed? - Attn: surf */ account = exchange_operations_get_exchange_account (); + if (!account) { + g_free (calendar_old_source_uri); + retrun NULL; + } account_name = account->account_name; if (calendar_src_exists) { |