mirror of https://github.com/GNOME/gimp.git
libgimp: don't unref() the GParamSpecs of a GimpPDBProcedure
after adding them to the procedure. We only own one reference, and it's the floating one.
This commit is contained in:
parent
42e8a344ab
commit
3d935b0bb0
|
@ -224,7 +224,6 @@ _gimp_pdb_procedure_new (GimpPDB *pdb,
|
|||
GParamSpec *pspec = gimp_pdb_proc_argument (name, i);
|
||||
|
||||
gimp_procedure_add_argument (procedure, pspec);
|
||||
g_param_spec_unref (pspec);
|
||||
}
|
||||
|
||||
for (i = 0; i < n_return_vals; i++)
|
||||
|
@ -232,7 +231,6 @@ _gimp_pdb_procedure_new (GimpPDB *pdb,
|
|||
GParamSpec *pspec = gimp_pdb_proc_return_value (name, i);
|
||||
|
||||
gimp_procedure_add_return_value (procedure, pspec);
|
||||
g_param_spec_unref (pspec);
|
||||
}
|
||||
|
||||
return procedure;
|
||||
|
|
Loading…
Reference in New Issue