aboutsummaryrefslogtreecommitdiff
path: root/libsylph
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-10-05 08:07:55 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-10-05 08:07:55 +0000
commit7fca23b243e832856515b7ef6f5023090d0514f1 (patch)
treecb3e6deae31e797b03032921c8c1f214a6e82ea1 /libsylph
parentdbeea1f396592439f2c52abcd7067d5107240e19 (diff)
imap_session_destroy(): free thread pool.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2271 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r--libsylph/imap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c
index cdb898b7..b7b7e55d 100644
--- a/libsylph/imap.c
+++ b/libsylph/imap.c
@@ -751,6 +751,12 @@ static gint imap_session_reconnect(IMAPSession *session)
static void imap_session_destroy(Session *session)
{
+#if USE_THREADS
+ IMAPRealSession *real = (IMAPRealSession *)session;
+
+ if (real->pool)
+ g_thread_pool_free(real->pool, TRUE, TRUE);
+#endif
imap_capability_free(IMAP_SESSION(session));
g_free(IMAP_SESSION(session)->mbox);
session_list = g_list_remove(session_list, session);