[gimp] cagetool: fix buffer leak
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] cagetool: fix buffer leak
- Date: Tue, 5 Apr 2011 08:18:32 +0000 (UTC)
commit 7f6d06d3e9338621d3e7fad7cd17e74d6635aa54
Author: Michael Muré <batolettre gmail com>
Date: Tue Apr 5 10:18:07 2011 +0200
cagetool: fix buffer leak
app/tools/gimpcagetool.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpcagetool.c b/app/tools/gimpcagetool.c
index 25ae04b..d8d8201 100644
--- a/app/tools/gimpcagetool.c
+++ b/app/tools/gimpcagetool.c
@@ -1148,6 +1148,12 @@ gimp_cage_tool_render_node_update (GimpCageTool *ct)
"buffer", ct->coef,
NULL);
}
+
+ /* This just unref buffer, since gegl_node_get add a refcount on it */
+ if (buffer)
+ {
+ gegl_buffer_destroy (buffer);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]