Commit 1cba88aa authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

Free last_blob when destroying tool.

Sat Jul 11 23:57:09 1998  Owen Taylor  <otaylor@gtk.org>

	* app/ink.c (tools_free_ink): Free last_blob when destroying
	  tool.

	* app/blob.c: Fix off-by-one error when searhing for gaps.
parent 7ee6ae52
Sat Jul 11 23:57:09 1998 Owen Taylor <otaylor@gtk.org>
* app/ink.c (tools_free_ink): Free last_blob when destroying
tool.
* app/blob.c: Fix off-by-one error when searhing for gaps.
Sat Jul 11 19:57:28 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* app/tile.c: Added some more debugging code.
......
......@@ -194,7 +194,7 @@ blob_convex_union (Blob *b1, Blob *b2)
not a big deal either way after anti-aliasing */
/* left edge */
for (i1=start; i1<result->height-1; i1++)
for (i1=start; i1<result->height-2; i1++)
{
/* Find empty gaps */
if (!(present[i1+1] & LEFT))
......@@ -245,7 +245,7 @@ blob_convex_union (Blob *b1, Blob *b2)
}
/* right edge */
for (i1=start; i1<result->height-1; i1++)
for (i1=start; i1<result->height-2; i1++)
{
/* Find empty gaps */
if (!(present[i1+1] & RIGHT))
......
......@@ -1068,6 +1068,10 @@ tools_free_ink (Tool *tool)
if (ink_tool->core)
draw_core_free (ink_tool->core);
/* Free the last blob, if any */
if (ink_tool->last_blob)
g_free (ink_tool->last_blob);
/* Cleanup memory */
ink_cleanup ();
......
......@@ -194,7 +194,7 @@ blob_convex_union (Blob *b1, Blob *b2)
not a big deal either way after anti-aliasing */
/* left edge */
for (i1=start; i1<result->height-1; i1++)
for (i1=start; i1<result->height-2; i1++)
{
/* Find empty gaps */
if (!(present[i1+1] & LEFT))
......@@ -245,7 +245,7 @@ blob_convex_union (Blob *b1, Blob *b2)
}
/* right edge */
for (i1=start; i1<result->height-1; i1++)
for (i1=start; i1<result->height-2; i1++)
{
/* Find empty gaps */
if (!(present[i1+1] & RIGHT))
......
......@@ -1068,6 +1068,10 @@ tools_free_ink (Tool *tool)
if (ink_tool->core)
draw_core_free (ink_tool->core);
/* Free the last blob, if any */
if (ink_tool->last_blob)
g_free (ink_tool->last_blob);
/* Cleanup memory */
ink_cleanup ();
......
......@@ -194,7 +194,7 @@ blob_convex_union (Blob *b1, Blob *b2)
not a big deal either way after anti-aliasing */
/* left edge */
for (i1=start; i1<result->height-1; i1++)
for (i1=start; i1<result->height-2; i1++)
{
/* Find empty gaps */
if (!(present[i1+1] & LEFT))
......@@ -245,7 +245,7 @@ blob_convex_union (Blob *b1, Blob *b2)
}
/* right edge */
for (i1=start; i1<result->height-1; i1++)
for (i1=start; i1<result->height-2; i1++)
{
/* Find empty gaps */
if (!(present[i1+1] & RIGHT))
......
......@@ -194,7 +194,7 @@ blob_convex_union (Blob *b1, Blob *b2)
not a big deal either way after anti-aliasing */
/* left edge */
for (i1=start; i1<result->height-1; i1++)
for (i1=start; i1<result->height-2; i1++)
{
/* Find empty gaps */
if (!(present[i1+1] & LEFT))
......@@ -245,7 +245,7 @@ blob_convex_union (Blob *b1, Blob *b2)
}
/* right edge */
for (i1=start; i1<result->height-1; i1++)
for (i1=start; i1<result->height-2; i1++)
{
/* Find empty gaps */
if (!(present[i1+1] & RIGHT))
......
......@@ -1068,6 +1068,10 @@ tools_free_ink (Tool *tool)
if (ink_tool->core)
draw_core_free (ink_tool->core);
/* Free the last blob, if any */
if (ink_tool->last_blob)
g_free (ink_tool->last_blob);
/* Cleanup memory */
ink_cleanup ();
......
......@@ -1068,6 +1068,10 @@ tools_free_ink (Tool *tool)
if (ink_tool->core)
draw_core_free (ink_tool->core);
/* Free the last blob, if any */
if (ink_tool->last_blob)
g_free (ink_tool->last_blob);
/* Cleanup memory */
ink_cleanup ();
......
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