Commit f0e58a1c authored by David Odin's avatar David Odin
Browse files

don't try to free unallocated space (happened when vert or horz were 0.0)

* plug-ins/common/gauss.c: don't try to free unallocated space
  (happened when vert or horz were 0.0)
parent 2954fa94
2005-07-18 DindinX <dindinx@gimp.org>
* plug-ins/common/gauss.c: don't try to free unallocated space
(happened when vert or horz were 0.0)
2005-07-18 Sven Neumann <sven@gimp.org> 2005-07-18 Sven Neumann <sven@gimp.org>
* plug-ins/common/poppler.c: marked strings for translation. * plug-ins/common/poppler.c: marked strings for translation.
......
...@@ -900,8 +900,11 @@ gauss (GimpDrawable *drawable, ...@@ -900,8 +900,11 @@ gauss (GimpDrawable *drawable,
break; break;
case BLUR_RLE: case BLUR_RLE:
g_free (sum - length); if (vert > 0.0)
g_free (curve - length); {
g_free (sum - length);
g_free (curve - length);
}
curve = make_curve (std_dev, &length); curve = make_curve (std_dev, &length);
sum = g_new (gint, 2 * length + 1); sum = g_new (gint, 2 * length + 1);
...@@ -1082,8 +1085,11 @@ gauss (GimpDrawable *drawable, ...@@ -1082,8 +1085,11 @@ gauss (GimpDrawable *drawable,
break; break;
case BLUR_RLE: case BLUR_RLE:
g_free (sum - length); if (horz > 0.0 || vert > 0.0)
g_free (curve - length); {
g_free (sum - length);
g_free (curve - length);
}
g_free (buf); g_free (buf);
break; break;
} }
......
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