Commit 11795e78 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

plugged a tiny memory leak.

2004-07-13  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptexttool.c (gimp_text_tool_create_layer): plugged
	a tiny memory leak.
parent 5cff1016
2004-07-13 Sven Neumann <sven@gimp.org>
* app/tools/gimptexttool.c (gimp_text_tool_create_layer): plugged
a tiny memory leak.
2004-07-13 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-undo.c: resurrected some bit-rotting debug
......
......@@ -671,11 +671,16 @@ gimp_text_tool_create_layer (GimpTextTool *text_tool,
}
else
{
gchar *str;
str = gimp_text_editor_get_text (GIMP_TEXT_EDITOR (text_tool->editor));
g_object_set (text_tool->proxy,
"text",
gimp_text_editor_get_text (GIMP_TEXT_EDITOR (text_tool->editor)),
"text", str,
NULL);
g_free (str);
text = gimp_config_duplicate (GIMP_CONFIG (text_tool->proxy));
}
......
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