diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-10-05 08:07:55 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-10-05 08:07:55 +0000 |
commit | 7fca23b243e832856515b7ef6f5023090d0514f1 (patch) | |
tree | cb3e6deae31e797b03032921c8c1f214a6e82ea1 | |
parent | dbeea1f396592439f2c52abcd7067d5107240e19 (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-- | ChangeLog | 4 | ||||
-rw-r--r-- | libsylph/imap.c | 6 |
2 files changed, 10 insertions, 0 deletions
@@ -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); |