[gimp] app: don't leak all new warp ops, don't abort the image map on undo/redo
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't leak all new warp ops, don't abort the image map on undo/redo
- Date: Wed, 22 May 2013 21:38:37 +0000 (UTC)
commit f862bfb342dad55c67f047873091c1d1f7d21b9a
Author: Michael Natterer <mitch gimp org>
Date: Wed May 22 23:37:22 2013 +0200
app: don't leak all new warp ops, don't abort the image map on undo/redo
app/tools/gimpwarptool.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimpwarptool.c b/app/tools/gimpwarptool.c
index 7c33448..5586dce 100644
--- a/app/tools/gimpwarptool.c
+++ b/app/tools/gimpwarptool.c
@@ -221,6 +221,7 @@ gimp_warp_tool_button_press (GimpTool *tool,
NULL);
gimp_warp_tool_add_op (wt, new_op);
+ g_object_unref (new_op);
g_signal_connect (wt->current_stroke, "changed",
G_CALLBACK (gimp_warp_tool_stroke_changed),
@@ -462,7 +463,6 @@ gimp_warp_tool_undo (GimpTool *tool,
bbox.width = max_x - min_x + size;
bbox.height = max_y - min_y + size;
- gimp_image_map_abort (wt->image_map);
gimp_image_map_apply (wt->image_map, &bbox);
}
@@ -513,7 +513,6 @@ gimp_warp_tool_redo (GimpTool *tool,
bbox.width = max_x - min_x + size;
bbox.height = max_y - min_y + size;
- gimp_image_map_abort (wt->image_map);
gimp_image_map_apply (wt->image_map, &bbox);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]