Commit 061dc89d authored by Sven Neumann's avatar Sven Neumann

Watch out! Sven starts to dig into the mysteries of painting and inking!


--Sven
parent 48627bc8
Wed Jul 14 11:42:49 MEST 1999 Sven Neumann <sven@gimp.org>
* app/ink.c: we were leaking a blob at each button_press
Tue Jul 13 22:48:37 BST 1999 Andy Thomas <alt@gimp.org>
* plug-ins/sel2path/sel2path.c
......
......@@ -876,6 +876,10 @@ ink_button_release (Tool *tool,
/* Set tool state to inactive -- no longer painting */
tool->state = INACTIVE;
/* free the last blob */
g_free (ink_tool->last_blob);
ink_tool->last_blob = NULL;
ink_finish (ink_tool, gimage_active_drawable (gdisp->gimage), tool->ID);
gdisplays_flush ();
}
......@@ -1573,7 +1577,7 @@ tools_free_ink (Tool *tool)
if (ink_tool->core)
draw_core_free (ink_tool->core);
/* Free the last blob, if any */
/* Free the last blob, if any */
if (ink_tool->last_blob)
g_free (ink_tool->last_blob);
......
......@@ -876,6 +876,10 @@ ink_button_release (Tool *tool,
/* Set tool state to inactive -- no longer painting */
tool->state = INACTIVE;
/* free the last blob */
g_free (ink_tool->last_blob);
ink_tool->last_blob = NULL;
ink_finish (ink_tool, gimage_active_drawable (gdisp->gimage), tool->ID);
gdisplays_flush ();
}
......@@ -1573,7 +1577,7 @@ tools_free_ink (Tool *tool)
if (ink_tool->core)
draw_core_free (ink_tool->core);
/* Free the last blob, if any */
/* Free the last blob, if any */
if (ink_tool->last_blob)
g_free (ink_tool->last_blob);
......
......@@ -876,6 +876,10 @@ ink_button_release (Tool *tool,
/* Set tool state to inactive -- no longer painting */
tool->state = INACTIVE;
/* free the last blob */
g_free (ink_tool->last_blob);
ink_tool->last_blob = NULL;
ink_finish (ink_tool, gimage_active_drawable (gdisp->gimage), tool->ID);
gdisplays_flush ();
}
......@@ -1573,7 +1577,7 @@ tools_free_ink (Tool *tool)
if (ink_tool->core)
draw_core_free (ink_tool->core);
/* Free the last blob, if any */
/* Free the last blob, if any */
if (ink_tool->last_blob)
g_free (ink_tool->last_blob);
......
......@@ -876,6 +876,10 @@ ink_button_release (Tool *tool,
/* Set tool state to inactive -- no longer painting */
tool->state = INACTIVE;
/* free the last blob */
g_free (ink_tool->last_blob);
ink_tool->last_blob = NULL;
ink_finish (ink_tool, gimage_active_drawable (gdisp->gimage), tool->ID);
gdisplays_flush ();
}
......@@ -1573,7 +1577,7 @@ tools_free_ink (Tool *tool)
if (ink_tool->core)
draw_core_free (ink_tool->core);
/* Free the last blob, if any */
/* Free the last blob, if any */
if (ink_tool->last_blob)
g_free (ink_tool->last_blob);
......
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