evas - image data unload - try plug another possible crash path
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 25 Jul 2015 18:02:06 +0000 (03:02 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 25 Jul 2015 18:02:06 +0000 (03:02 +0900)
i am not sure if this is the odd crash i am seeing, but in theory it
could be. as these crashes are rare it's hard to find and gdb is "too
late" other than telling me the image is freed already by the time we
do an unload.

src/lib/evas/common/evas_image_main.c

index 3b852cc..cf38e1d 100644 (file)
@@ -462,7 +462,7 @@ evas_common_rgba_image_unload(Image_Entry *ie)
           }
         return;
      }
-   evas_common_rgba_image_unload_real(ie);
+   if (!ie->need_unload) evas_common_rgba_image_unload_real(ie);
 }
 
 void