plugged a memory leak.

2008-09-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c 
(script_fu_run_command):
	plugged a memory leak.

	* plug-ins/script-fu/script-fu-console.c
	* plug-ins/script-fu/script-fu-server.c: minor cleanup.


svn path=/trunk/; revision=26996
This commit is contained in:
Sven Neumann
2008-09-18 14:12:30 +00:00
committed by Sven Neumann
parent d232dcf41e
commit e0a2e4e5db
4 changed files with 18 additions and 10 deletions

View File

@ -1,3 +1,11 @@
2008-09-18 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c (script_fu_run_command):
plugged a memory leak.
* plug-ins/script-fu/script-fu-console.c
* plug-ins/script-fu/script-fu-server.c: minor cleanup.
2008-09-18 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-script.[ch]: add new functions

View File

@ -595,7 +595,7 @@ script_fu_cc_key_function (GtkWidget *widget,
gtk_entry_set_text (GTK_ENTRY (console->cc), "");
output = g_string_new ("");
output = g_string_new (NULL);
ts_register_output_func (ts_gstring_output_func, output);
gimp_plugin_set_pdb_error_handler (GIMP_PDB_ERROR_HANDLER_PLUGIN);

View File

@ -582,10 +582,10 @@ static gboolean
script_fu_run_command (const gchar *command,
GError **error)
{
GString *output = g_string_new ("");
GString *output;
gboolean success = FALSE;
output = g_string_new ("");
output = g_string_new (NULL);
ts_register_output_func (ts_gstring_output_func, output);
if (ts_interpret_string (command))

View File

@ -451,17 +451,17 @@ server_start (gint port,
static gboolean
execute_command (SFCommand *cmd)
{
guchar buffer[RESPONSE_HEADER];
GString *response;
time_t clock1;
time_t clock2;
gboolean error;
gint i;
guchar buffer[RESPONSE_HEADER];
GString *response;
time_t clock1;
time_t clock2;
gboolean error;
gint i;
server_log ("Processing request #%d\n", cmd->request_no);
time (&clock1);
response = g_string_new ("");
response = g_string_new (NULL);
ts_register_output_func (ts_gstring_output_func, response);
/* run the command */