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
@ -396,7 +396,14 @@ plug_in_args_to_params (GValueArray *args,
|
||||
params[i].data.d_parasite.data = parasite->data;
|
||||
|
||||
if (full_copy)
|
||||
g_free (parasite);
|
||||
{
|
||||
parasite->name = NULL;
|
||||
parasite->flags = 0;
|
||||
parasite->size = 0;
|
||||
parasite->data = NULL;
|
||||
|
||||
gimp_parasite_free (parasite);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user