forked from enlightenment/efl
evas: gl_generic: fix leak if we return dst and not newdst
In case we still retrun dst we should make sure we free up the newly allocated newdst. CID: 1323090
This commit is contained in:
parent
342db1ee38
commit
7c36761e62
|
@ -1278,6 +1278,7 @@ eng_image_scaled_update(void *data EINA_UNUSED, void *scaled, void *image,
|
|||
dst->w = dst_w;
|
||||
dst->h = dst_h;
|
||||
dst->scaled.smooth = smooth;
|
||||
free(newdst);
|
||||
return dst;
|
||||
}
|
||||
src->references++;
|
||||
|
|
Loading…
Reference in New Issue