image - null checking.
If the rotated image exceeds image maximum size, the data would be invalid.
This commit is contained in:
parent
e768af8f84
commit
a9c718361a
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue