From aee8f1e5751242d685126730a92a8c3ba9de8fda Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Thu, 14 Feb 2008 09:12:28 +0000 Subject: [PATCH] * Fixes a terrible mistake by my side that could cause SIGSEV's in some situations, I was incorrectly unref'ing the outbox folder * Replaced a tny_folder_sync by the async version pmo-trunk-r4175 --- src/modest-tny-send-queue.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modest-tny-send-queue.c b/src/modest-tny-send-queue.c index db4a1af..e0716b9 100644 --- a/src/modest-tny-send-queue.c +++ b/src/modest-tny-send-queue.c @@ -442,8 +442,7 @@ modest_tny_send_queue_new (TnyCamelTransportAccount *account) modest_tny_send_queue_wakeup (self); /* Frees */ - g_object_unref (G_OBJECT (headers)); - g_object_unref (G_OBJECT (priv->outbox)); + g_object_unref (headers); g_object_unref (iter); /* Do this at the end, because it'll call tny_send_queue_flush @@ -749,7 +748,7 @@ modest_tny_send_queue_wakeup (ModestTnySendQueue *self) } /* Make changes persistent on disk */ - tny_folder_sync (priv->outbox, FALSE, NULL); + tny_folder_sync_async (priv->outbox, FALSE, NULL, NULL, NULL); /* Frees */ g_object_unref (iter); -- 1.7.9.5