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:
Sven Neumann
2003-04-12 12:59:15 +00:00
committed by Sven Neumann
parent d95b6181da
commit e00514993e
3 changed files with 27 additions and 0 deletions

View File

@ -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

View File

@ -432,6 +432,17 @@ marshall_proc_db_call (LISP a)
&params, &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)

View File

@ -432,6 +432,17 @@ marshall_proc_db_call (LISP a)
&params, &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)