* src/modest-mail-operation.c:
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 6 Sep 2007 11:01:27 +0000 (11:01 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 6 Sep 2007 11:01:27 +0000 (11:01 +0000)
* (idle_create_msg_cb): do gdk_threads_leave to protect also
  the unref's, as they can cause locks (fixes NB#65540).

pmo-trunk-r3225

src/modest-mail-operation.c

index 136aab3..a21782e 100644 (file)
@@ -591,12 +591,12 @@ idle_create_msg_cb (gpointer idle_data)
 
        gdk_threads_enter (); /* CHECKED */
        info->callback (info->mail_op, info->msg, info->userdata);
-       gdk_threads_leave (); /* CHECKED */
 
        g_object_unref (info->mail_op);
        if (info->msg)
                g_object_unref (info->msg);
        g_slice_free (CreateMsgIdleInfo, info);
+       gdk_threads_leave (); /* CHECKED */
 
        return FALSE;
 }