aboutsummaryrefslogtreecommitdiff
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
parentdbeea1f396592439f2c52abcd7067d5107240e19 (diff)
imap_session_destroy(): free thread pool.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2271 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog4
-rw-r--r--libsylph/imap.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c703a42c..a2a42883 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2009-10-05
+ * libsylph/imap.c: imap_session_destroy(): free thread pool.
+
+2009-10-05
+
* src/main.c: display status on loading plug-ins.
2009-10-02
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);