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:

committed by
Sven Neumann

parent
d232dcf41e
commit
e0a2e4e5db
@ -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>
|
2008-09-18 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* plug-ins/script-fu/script-fu-script.[ch]: add new functions
|
* plug-ins/script-fu/script-fu-script.[ch]: add new functions
|
||||||
|
@ -595,7 +595,7 @@ script_fu_cc_key_function (GtkWidget *widget,
|
|||||||
|
|
||||||
gtk_entry_set_text (GTK_ENTRY (console->cc), "");
|
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);
|
ts_register_output_func (ts_gstring_output_func, output);
|
||||||
|
|
||||||
gimp_plugin_set_pdb_error_handler (GIMP_PDB_ERROR_HANDLER_PLUGIN);
|
gimp_plugin_set_pdb_error_handler (GIMP_PDB_ERROR_HANDLER_PLUGIN);
|
||||||
|
@ -582,10 +582,10 @@ static gboolean
|
|||||||
script_fu_run_command (const gchar *command,
|
script_fu_run_command (const gchar *command,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
GString *output = g_string_new ("");
|
GString *output;
|
||||||
gboolean success = FALSE;
|
gboolean success = FALSE;
|
||||||
|
|
||||||
output = g_string_new ("");
|
output = g_string_new (NULL);
|
||||||
ts_register_output_func (ts_gstring_output_func, output);
|
ts_register_output_func (ts_gstring_output_func, output);
|
||||||
|
|
||||||
if (ts_interpret_string (command))
|
if (ts_interpret_string (command))
|
||||||
|
@ -451,17 +451,17 @@ server_start (gint port,
|
|||||||
static gboolean
|
static gboolean
|
||||||
execute_command (SFCommand *cmd)
|
execute_command (SFCommand *cmd)
|
||||||
{
|
{
|
||||||
guchar buffer[RESPONSE_HEADER];
|
guchar buffer[RESPONSE_HEADER];
|
||||||
GString *response;
|
GString *response;
|
||||||
time_t clock1;
|
time_t clock1;
|
||||||
time_t clock2;
|
time_t clock2;
|
||||||
gboolean error;
|
gboolean error;
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
server_log ("Processing request #%d\n", cmd->request_no);
|
server_log ("Processing request #%d\n", cmd->request_no);
|
||||||
time (&clock1);
|
time (&clock1);
|
||||||
|
|
||||||
response = g_string_new ("");
|
response = g_string_new (NULL);
|
||||||
ts_register_output_func (ts_gstring_output_func, response);
|
ts_register_output_func (ts_gstring_output_func, response);
|
||||||
|
|
||||||
/* run the command */
|
/* run the command */
|
||||||
|
Reference in New Issue
Block a user