applied a patch from Pedro Gimero that plugs a memleak in Script-Fu.
2003-04-12 Sven Neumann <sven@gimp.org> * plug-ins/script-fu/siod-wrapper.c (marshall_proc_db_call): applied a patch from Pedro Gimero that plugs a memleak in Script-Fu.
This commit is contained in:

committed by
Sven Neumann

parent
d95b6181da
commit
e00514993e
@ -1,3 +1,8 @@
|
||||
2003-04-12 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/script-fu/siod-wrapper.c (marshall_proc_db_call):
|
||||
applied a patch from Pedro Gimero that plugs a memleak in Script-Fu.
|
||||
|
||||
2003-04-11 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/display/gimpdisplayshell-scale.c
|
||||
|
@ -432,6 +432,17 @@ marshall_proc_db_call (LISP a)
|
||||
¶ms, &return_vals))
|
||||
return my_err ("Invalid procedure name specified.", NIL);
|
||||
|
||||
/* Free the name and the description which are of no use here. */
|
||||
for (i = 0; i < nparams; i++)
|
||||
{
|
||||
g_free (params[i].name);
|
||||
g_free (params[i].description);
|
||||
}
|
||||
for (i = 0; i < nreturn_vals; i++)
|
||||
{
|
||||
g_free (return_vals[i].name);
|
||||
g_free (return_vals[i].description);
|
||||
}
|
||||
|
||||
/* Check the supplied number of arguments */
|
||||
if ((nlength (a) - 1) != nparams)
|
||||
|
@ -432,6 +432,17 @@ marshall_proc_db_call (LISP a)
|
||||
¶ms, &return_vals))
|
||||
return my_err ("Invalid procedure name specified.", NIL);
|
||||
|
||||
/* Free the name and the description which are of no use here. */
|
||||
for (i = 0; i < nparams; i++)
|
||||
{
|
||||
g_free (params[i].name);
|
||||
g_free (params[i].description);
|
||||
}
|
||||
for (i = 0; i < nreturn_vals; i++)
|
||||
{
|
||||
g_free (return_vals[i].name);
|
||||
g_free (return_vals[i].description);
|
||||
}
|
||||
|
||||
/* Check the supplied number of arguments */
|
||||
if ((nlength (a) - 1) != nparams)
|
||||
|
Reference in New Issue
Block a user