fix evas compilation when async preload is disabled

SVN revision: 43514
This commit is contained in:
Vincent Torri 2009-11-07 18:19:44 +00:00
parent 2ccaf85b59
commit c6458f9e7f
1 changed files with 19 additions and 16 deletions

View File

@ -937,9 +937,11 @@ evas_cache_image_drop(Image_Entry *im)
im->references--;
cache = im->cache;
if (im->references == 0 && !im->flags.pending)
if (im->references == 0)
{
#ifdef BUILD_ASYNC_PRELOAD
if (!im->flags.pending)
{
pthread_mutex_lock(&mutex);
if (im->flags.preload || im->flags.in_pipe)
{
@ -955,6 +957,7 @@ evas_cache_image_drop(Image_Entry *im)
return;
}
pthread_mutex_unlock(&mutex);
}
#endif
if (im->flags.dirty)