Commit b20358c0 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

removed a superfluous call to g_object_ref().

2003-09-02  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpeditselectiontool.c (init_edit_selection): removed
	a superfluous call to g_object_ref().

	* app/vectors/gimpvectors.c (gimp_vectors_copy_strokes): free the
	old list of strokes.
parent e924a137
2003-09-02 Sven Neumann <sven@gimp.org>
* app/tools/gimpeditselectiontool.c (init_edit_selection): removed
a superfluous call to g_object_ref().
* app/vectors/gimpvectors.c (gimp_vectors_copy_strokes): free the
old list of strokes.
2003-09-02 Sven Neumann <sven@gimp.org>
* app/text/gimptextlayout-render.c (gimp_text_layout_render)
......@@ -355,8 +355,6 @@ init_edit_selection (GimpTool *tool,
gimp_tool_control_activate (GIMP_TOOL (edit_select)->control);
GIMP_TOOL (edit_select)->gdisp = gdisp;
g_object_ref (edit_select);
tool_manager_push_tool (gdisp->gimage->gimp,
GIMP_TOOL (edit_select));
......
......@@ -620,9 +620,8 @@ gimp_vectors_copy_strokes (const GimpVectors *src_vectors,
if (dest_vectors->strokes)
{
#ifdef __GNUC__
#warning FIXME: free old dest_vectors->strokes
#endif
g_list_foreach (dest_vectors->strokes, (Gfunc) g_object_unref, NULL);
g_list_free (dest_vectors->strokes);
}
dest_vectors->strokes = g_list_copy (src_vectors->strokes);
......
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