Commit 45f35d6c authored by Kevin Cozens's avatar Kevin Cozens Committed by Kevin Cozens

Set return_val before destroying values[] as it may still be needed.

2006-11-18  Kevin Cozens  <kcozens@cvs.gnome.org>

	* tiny-fu/ts-wrapper.c (marshall_proc_db_call): Set return_val before
	destroying values[] as it may still be needed.
parent b42de456
2006-11-18 Kevin Cozens <kcozens@cvs.gnome.org>
* tiny-fu/ts-wrapper.c (marshall_proc_db_call): Set return_val before
destroying values[] as it may still be needed.
2006-11-08 Kevin Cozens <kcozens@cvs.gnome.org>
* scripts/script-fu-compat.init: Added strbreakup, strcat, strcmp,
......
......@@ -1420,6 +1420,16 @@ fprintf (stderr, " data '%.*s'\n",
break;
}
/* If we have no return value (s) from PDB call, return */
/* either TRUE or FALSE to indicate if call succeeded. */
if (return_val == sc->NIL)
{
if (values[0].data.d_status == GIMP_PDB_SUCCESS)
return_val = sc->vptr->cons (sc, sc->T, sc->NIL);
else
return_val = sc->vptr->cons (sc, sc->F, sc->NIL);
}
/* free the proc name */
g_free (proc_name);
......@@ -1448,16 +1458,6 @@ fprintf (stderr, " data '%.*s'\n",
gtk_main_iteration ();
#endif
/* If we have no return value (s) from PDB call, return */
/* either TRUE or FALSE to indicate if call succeeded. */
if (return_val == sc->NIL)
{
if (values[0].data.d_status == GIMP_PDB_SUCCESS)
return_val = sc->vptr->cons (sc, sc->T, sc->NIL);
else
return_val = sc->vptr->cons (sc, sc->F, sc->NIL);
}
return return_val;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment