Fix possible memory leak with software_16.

If image data is not loaded at all, engine must free associated 32 bit
structure.


SVN revision: 32781
This commit is contained in:
Gustavo Sverzut Barbieri 2007-11-19 22:27:02 +00:00
parent 502b766d66
commit 3a64b46646
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ soft16_image_destroy(Soft16_Image *im)
if (im->file) evas_stringshare_del(im->file);
if (im->key) evas_stringshare_del(im->key);
if (im->free_pixels) free(im->pixels);
if (im->source_im) evas_cache_image_drop(im->source_im);
free(im);
}