[gimp/metadata-browser] app: don't leak all GParamSpecs of GimpProcedures
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: don't leak all GParamSpecs of GimpProcedures
- Date: Wed, 12 Sep 2012 22:12:04 +0000 (UTC)
commit bdc53f273b0770f09e0ed39ea379b005885cc2ea
Author: Michael Natterer <mitch gimp org>
Date: Fri Nov 4 01:31:45 2011 +0100
app: don't leak all GParamSpecs of GimpProcedures
app/pdb/gimpprocedure.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/app/pdb/gimpprocedure.c b/app/pdb/gimpprocedure.c
index cd8b6f2..d249711 100644
--- a/app/pdb/gimpprocedure.c
+++ b/app/pdb/gimpprocedure.c
@@ -523,8 +523,7 @@ gimp_procedure_add_argument (GimpProcedure *procedure,
procedure->args[procedure->num_args] = pspec;
- g_param_spec_ref (pspec);
- g_param_spec_sink (pspec);
+ g_param_spec_ref_sink (pspec);
procedure->num_args++;
}
@@ -541,8 +540,7 @@ gimp_procedure_add_return_value (GimpProcedure *procedure,
procedure->values[procedure->num_values] = pspec;
- g_param_spec_ref (pspec);
- g_param_spec_sink (pspec);
+ g_param_spec_ref_sink (pspec);
procedure->num_values++;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]