image - null checking.

If the rotated image exceeds image maximum size, the data would be invalid.
This commit is contained in:
ChunEon Park 2014-05-21 13:24:32 +09:00
parent e768af8f84
commit a9c718361a
1 changed files with 5 additions and 0 deletions

View File

@ -1106,6 +1106,11 @@ _elm_image_orient_set(Eo *obj, Elm_Image_Data *sd, Elm_Image_Orient orient)
evas_object_image_size_set(sd->img, iw, ih);
data = evas_object_image_data_get(sd->img, EINA_TRUE);
if (!data)
{
free(data2);
return;
}
switch (orient)
{