forked from enlightenment/efl
slight mistake - trash cleanup on shutdown didnt null out base
SVN revision: 53797
This commit is contained in:
parent
51e3cd6419
commit
8074415ffc
|
@ -267,6 +267,7 @@ eina_one_big_shutdown(void *data)
|
||||||
if (pool->empty)
|
if (pool->empty)
|
||||||
{
|
{
|
||||||
void *mem = eina_trash_pop(&pool->empty);
|
void *mem = eina_trash_pop(&pool->empty);
|
||||||
|
if (mem == pool->base) pool->base = NULL;
|
||||||
free(mem);
|
free(mem);
|
||||||
}
|
}
|
||||||
if (pool->over > 0)
|
if (pool->over > 0)
|
||||||
|
@ -307,7 +308,7 @@ eina_one_big_shutdown(void *data)
|
||||||
VALGRIND_DESTROY_MEMPOOL(pool);
|
VALGRIND_DESTROY_MEMPOOL(pool);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
free(pool->base);
|
if (pool->base) free(pool->base);
|
||||||
|
|
||||||
#ifdef EFL_HAVE_THREADS
|
#ifdef EFL_HAVE_THREADS
|
||||||
# ifdef EFL_HAVE_POSIX_THREADS
|
# ifdef EFL_HAVE_POSIX_THREADS
|
||||||
|
|
Loading…
Reference in New Issue