aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-convert-local-mail.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-convert-local-mail.c')
-rw-r--r--shell/e-convert-local-mail.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/e-convert-local-mail.c b/shell/e-convert-local-mail.c
index 8a726f8a99..7e94ee7175 100644
--- a/shell/e-convert-local-mail.c
+++ b/shell/e-convert-local-mail.c
@@ -190,6 +190,7 @@ migrate_mbox_to_maildir (EShell *shell,
const gchar *mbox_uid;
gchar *path;
struct MigrateStore ms;
+ GThread *thread;
GError *error = NULL;
registry = e_shell_get_registry (shell);
@@ -255,12 +256,13 @@ migrate_mbox_to_maildir (EShell *shell,
ms.session = session;
ms.complete = FALSE;
- g_thread_create ((GThreadFunc) migrate_stores, &ms, TRUE, NULL);
+ thread = g_thread_new (NULL, (GThreadFunc) migrate_stores, &ms);
while (!ms.complete)
g_main_context_iteration (NULL, TRUE);
g_object_unref (mbox_service);
g_object_unref (maildir_service);
+ g_thread_unref (thread);
return TRUE;
}