dont free null ptrs eh?

SVN revision: 53944
This commit is contained in:
Carsten Haitzler 2010-10-28 03:46:52 +00:00
parent c3ffeee9e1
commit 788a3357e9
1 changed files with 4 additions and 1 deletions

View File

@ -282,7 +282,10 @@ eina_chained_mempool_free(void *data, void *ptr)
}
#ifndef NVALGRIND
VALGRIND_MEMPOOL_FREE(pool, ptr);
if (ptr)
{
VALGRIND_MEMPOOL_FREE(pool, ptr);
}
#endif
#ifdef EFL_HAVE_THREADS