mirror of https://github.com/GNOME/gimp.git
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:
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>
|
||||
|
||||
* libgimpwidgets/gimpsizeentry.c
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -959,7 +959,10 @@ gimp_run_procedure2 (const gchar *name,
|
|||
proc_return = msg.data;
|
||||
|
||||
*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)
|
||||
{
|
||||
|
@ -975,8 +978,7 @@ gimp_run_procedure2 (const gchar *name,
|
|||
break;
|
||||
}
|
||||
|
||||
g_free (proc_return->name);
|
||||
g_free (proc_return);
|
||||
gimp_wire_destroy (&msg);
|
||||
|
||||
return return_vals;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue