* Fixes a terrible mistake by my side that could cause SIGSEV's in some situations...
authorSergio Villar Senin <svillar@igalia.com>
Thu, 14 Feb 2008 09:12:28 +0000 (09:12 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Thu, 14 Feb 2008 09:12:28 +0000 (09:12 +0000)
* Replaced a tny_folder_sync by the async version

pmo-trunk-r4175

src/modest-tny-send-queue.c

index db4a1af..e0716b9 100644 (file)
@@ -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);