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:
Stefan Schmidt 2015-09-07 13:41:47 +02:00
parent 342db1ee38
commit 7c36761e62
1 changed files with 1 additions and 0 deletions

View File

@ -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++;