From e45c63f52b1d01bb5b721905d1c68451dbb94303 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 8 Aug 2012 11:27:30 +0200 Subject: Bug #677695 - Crash on quit under emu_free_mail_cache() This is reverting previous patch for this bug and fixes it with a different approach. The previous patch had regression, instead of freezing evolution on quit it crashed it when there was pending addressbook lookups. --- mail/e-mail-backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c index 164e5a090d..e706d5571e 100644 --- a/mail/e-mail-backend.c +++ b/mail/e-mail-backend.c @@ -270,7 +270,7 @@ mail_backend_poll_to_quit (EActivity *activity) static void mail_backend_ready_to_quit (EActivity *activity) { - emu_free_mail_cache (); + emu_free_mail_cache (g_object_unref, g_object_ref (activity)); /* Do this last. It may terminate the process. */ g_object_unref (activity); -- cgit v1.2.3