Commit 3d935b0b authored by Michael Natterer's avatar Michael Natterer 😴

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.
parent 42e8a344
Pipeline #103998 passed with stages
in 17 minutes and 32 seconds
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment