diff options
Diffstat (limited to 'e-util/e-memory.c')
-rw-r--r-- | e-util/e-memory.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/e-util/e-memory.c b/e-util/e-memory.c index cf32147d75..455e2637ff 100644 --- a/e-util/e-memory.c +++ b/e-util/e-memory.c @@ -536,7 +536,13 @@ void e_mempool_destroy(MemPool *pool) { if (pool) { e_mempool_flush(pool, 1); +#ifdef G_THREADS_ENABLED + g_static_mutex_lock(&mempool_mutex); +#endif e_memchunk_free(mempool_memchunk, pool); +#ifdef G_THREADS_ENABLED + g_static_mutex_unlock(&mempool_mutex); +#endif } } |