diff options
Diffstat (limited to 'src/lib/evas/cache2/evas_cache2.c')
-rw-r--r-- | src/lib/evas/cache2/evas_cache2.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/evas/cache2/evas_cache2.c b/src/lib/evas/cache2/evas_cache2.c index 35cceb6e65..d4b2b5353b 100644 --- a/src/lib/evas/cache2/evas_cache2.c +++ b/src/lib/evas/cache2/evas_cache2.c | |||
@@ -1089,15 +1089,13 @@ evas_cache2_image_writable(Image_Entry *im) | |||
1089 | evas_cache2_image_pixels(im), | 1089 | evas_cache2_image_pixels(im), |
1090 | im->flags.alpha, im->space); | 1090 | im->flags.alpha, im->space); |
1091 | if (!im2) | 1091 | if (!im2) |
1092 | goto on_error; | 1092 | { |
1093 | ERR("Could not create a copy of this image (%dx%d)", im->w, im->h); | ||
1094 | return NULL; | ||
1095 | } | ||
1093 | 1096 | ||
1094 | evas_cache2_image_close(im); | 1097 | evas_cache2_image_close(im); |
1095 | return im2; | 1098 | return im2; |
1096 | |||
1097 | on_error: | ||
1098 | if (im2) | ||
1099 | _evas_cache2_image_entry_delete(cache, im2); | ||
1100 | return NULL; | ||
1101 | } | 1099 | } |
1102 | 1100 | ||
1103 | EAPI Image_Entry * | 1101 | EAPI Image_Entry * |