[gimp] app: Fix a dynamics leak from new pdb fix
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Fix a dynamics leak from new pdb fix
- Date: Sat, 19 Mar 2011 20:48:29 +0000 (UTC)
commit ce606d956187a827cc3e2e34d70b63898c6b1be4
Author: Alexia Death <alexiadeath gmail com>
Date: Sat Mar 19 22:48:17 2011 +0200
app: Fix a dynamics leak from new pdb fix
app/pdb/paint-tools-cmds.c | 2 ++
tools/pdbgen/pdb/paint_tools.pdb | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/pdb/paint-tools-cmds.c b/app/pdb/paint-tools-cmds.c
index 271e292..e78367f 100644
--- a/app/pdb/paint-tools-cmds.c
+++ b/app/pdb/paint-tools-cmds.c
@@ -713,6 +713,8 @@ paintbrush_invoker (GimpProcedure *procedure,
NULL);
gimp_context_set_dynamics (context, user_dynamics);
+
+ g_object_unref (pdb_dynamics);
}
else
success = FALSE;
diff --git a/tools/pdbgen/pdb/paint_tools.pdb b/tools/pdbgen/pdb/paint_tools.pdb
index e4e665c..8ea9c6f 100644
--- a/tools/pdbgen/pdb/paint_tools.pdb
+++ b/tools/pdbgen/pdb/paint_tools.pdb
@@ -638,6 +638,8 @@ HELP
NULL);
gimp_context_set_dynamics (context, user_dynamics);
+
+ g_object_unref (pdb_dynamics);
}
else
success = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]