summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_scale_sample.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_scale_sample.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/legacy/evas/src/lib/engines/common/evas_scale_sample.c b/legacy/evas/src/lib/engines/common/evas_scale_sample.c
index 306997431b..c864e5d760 100644
--- a/legacy/evas/src/lib/engines/common/evas_scale_sample.c
+++ b/legacy/evas/src/lib/engines/common/evas_scale_sample.c
@@ -283,7 +283,7 @@ scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst,
283#endif 283#endif
284 { 284 {
285 /* a scanline buffer */ 285 /* a scanline buffer */
286 buf = malloc(dst_clip_w * sizeof(DATA32)); 286 buf = alloca(dst_clip_w * sizeof(DATA32));
287 if (!buf) goto no_buf; 287 if (!buf) goto no_buf;
288 288
289 for (y = 0; y < dst_clip_h; y++) 289 for (y = 0; y < dst_clip_h; y++)
@@ -299,7 +299,6 @@ scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst,
299 func(buf, NULL, dc->mul.col, dptr, dst_clip_w); 299 func(buf, NULL, dc->mul.col, dptr, dst_clip_w);
300 dptr += dst_w; 300 dptr += dst_w;
301 } 301 }
302 free(buf);
303 } 302 }
304 } 303 }
305 304