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

--Sven
This commit is contained in:
Sven Neumann 1999-07-14 09:44:58 +00:00
parent 48627bc821
commit 061dc89df7
5 changed files with 24 additions and 4 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);