[gimp] app: don't leak all warp strokes, unref them in button_release()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't leak all warp strokes, unref them in button_release()
- Date: Wed, 22 May 2013 07:02:55 +0000 (UTC)
commit 3eadcd5e9ee50647186f5397bebc1a05f007d4bf
Author: Michael Natterer <mitch gimp org>
Date: Wed May 22 09:01:54 2013 +0200
app: don't leak all warp strokes, unref them in button_release()
app/tools/gimpwarptool.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpwarptool.c b/app/tools/gimpwarptool.c
index b9da248..bc73526 100644
--- a/app/tools/gimpwarptool.c
+++ b/app/tools/gimpwarptool.c
@@ -228,6 +228,9 @@ gimp_warp_tool_button_release (GimpTool *tool,
g_printerr ("%s\n", gegl_path_to_string (wt->current_stroke));
#endif
+ g_object_unref (wt->current_stroke);
+ wt->current_stroke = NULL;
+
if (release_type == GIMP_BUTTON_RELEASE_CANCEL)
{
gimp_warp_tool_undo (wt);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]