Commit 77697d70 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

allocate both oversize buffers with the right size, instead of one twice

2005-10-29  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimpconvolve.c (gimp_convolve_motion): allocate both
	oversize buffers with the right size, instead of one twice with
	the wrong size. Was broken since porting to pixel_region_init_data().
	Spotted by Seth Burgess. Fixes bug #317340.
parent be8215ef
2005-10-29 Michael Natterer <mitch@gimp.org>
* app/paint/gimpconvolve.c (gimp_convolve_motion): allocate both
oversize buffers with the right size, instead of one twice with
the wrong size. Was broken since porting to pixel_region_init_data().
Spotted by Seth Burgess. Fixes bug #317340.
2005-10-29 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/image.pdb: improved documentation of
......
......@@ -354,8 +354,8 @@ gimp_convolve_motion (GimpPaintCore *paint_core,
srcPR.bytes : srcPR.bytes + 1);
rowstride = (area->width + marginx) * bytes;
ovrsz1_data = g_malloc ((area->height + marginy) * rowstride);
ovrsz2_data = g_malloc ((area->height + marginy) * rowstride);
ovrsz2_data = g_malloc ((area->width + marginx) * rowstride);
pixel_region_init_data (&ovrsz2PR, ovrsz2_data,
bytes, rowstride,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment