forked from enlightenment/efl
fix alloc to use right sizeof type in elm_image
this should fix CID 1132738 - not a real issue as it still was * 4 but more obvious and clean after fix
This commit is contained in:
parent
f165f26f28
commit
d90886c992
|
@ -1368,9 +1368,9 @@ _elm_image_smart_orient_set(Eo *obj, void *_pd, va_list *list)
|
|||
* 270 degree */
|
||||
data = evas_object_image_data_get(sd->img, EINA_FALSE);
|
||||
if (!data) return;
|
||||
data2 = malloc(sizeof(unsigned char) * (iw * ih * 4));
|
||||
data2 = malloc(sizeof(unsigned int) * (iw * ih));
|
||||
if (!data2) return;
|
||||
memcpy(data2, data, sizeof (unsigned char) * (iw * ih * 4));
|
||||
memcpy(data2, data, sizeof(unsigned int) * (iw * ih));
|
||||
|
||||
w = ih;
|
||||
ih = iw;
|
||||
|
|
Loading…
Reference in New Issue