free parasites using gimp_parasite_free()
2007-05-22 Michael Natterer <mitch@gimp.org> * app/plug-in/plug-in-params.c (plug_in_args_to_params): free parasites using gimp_parasite_free() * libgimp/gimp.c (gimp_run_procedure2): free wire messages using gimp_wire_destroy(). svn path=/trunk/; revision=22563
This commit is contained in:

committed by
Michael Natterer

parent
16ec38275c
commit
460fab8fee
@ -1,3 +1,11 @@
|
|||||||
|
2007-05-22 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* app/plug-in/plug-in-params.c (plug_in_args_to_params): free
|
||||||
|
parasites using gimp_parasite_free()
|
||||||
|
|
||||||
|
* libgimp/gimp.c (gimp_run_procedure2): free wire messages using
|
||||||
|
gimp_wire_destroy().
|
||||||
|
|
||||||
2007-05-22 Sven Neumann <sven@gimp.org>
|
2007-05-22 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* libgimpwidgets/gimpsizeentry.c
|
* libgimpwidgets/gimpsizeentry.c
|
||||||
|
@ -396,7 +396,14 @@ plug_in_args_to_params (GValueArray *args,
|
|||||||
params[i].data.d_parasite.data = parasite->data;
|
params[i].data.d_parasite.data = parasite->data;
|
||||||
|
|
||||||
if (full_copy)
|
if (full_copy)
|
||||||
g_free (parasite);
|
{
|
||||||
|
parasite->name = NULL;
|
||||||
|
parasite->flags = 0;
|
||||||
|
parasite->size = 0;
|
||||||
|
parasite->data = NULL;
|
||||||
|
|
||||||
|
gimp_parasite_free (parasite);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -961,6 +961,9 @@ gimp_run_procedure2 (const gchar *name,
|
|||||||
*n_return_vals = proc_return->nparams;
|
*n_return_vals = proc_return->nparams;
|
||||||
return_vals = (GimpParam *) proc_return->params;
|
return_vals = (GimpParam *) proc_return->params;
|
||||||
|
|
||||||
|
proc_return->nparams = 0;
|
||||||
|
proc_return->params = NULL;
|
||||||
|
|
||||||
switch (return_vals[0].data.d_status)
|
switch (return_vals[0].data.d_status)
|
||||||
{
|
{
|
||||||
case GIMP_PDB_EXECUTION_ERROR:
|
case GIMP_PDB_EXECUTION_ERROR:
|
||||||
@ -975,8 +978,7 @@ gimp_run_procedure2 (const gchar *name,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free (proc_return->name);
|
gimp_wire_destroy (&msg);
|
||||||
g_free (proc_return);
|
|
||||||
|
|
||||||
return return_vals;
|
return return_vals;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user