gimp r26996 - in trunk: . plug-ins/script-fu
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26996 - in trunk: . plug-ins/script-fu
- Date: Thu, 18 Sep 2008 14:12:30 +0000 (UTC)
Author: neo
Date: Thu Sep 18 14:12:30 2008
New Revision: 26996
URL: http://svn.gnome.org/viewvc/gimp?rev=26996&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/plug-ins/script-fu/script-fu-console.c
trunk/plug-ins/script-fu/script-fu-scripts.c
trunk/plug-ins/script-fu/script-fu-server.c
Modified: trunk/plug-ins/script-fu/script-fu-console.c
==============================================================================
--- trunk/plug-ins/script-fu/script-fu-console.c (original)
+++ trunk/plug-ins/script-fu/script-fu-console.c Thu Sep 18 14:12:30 2008
@@ -595,7 +595,7 @@
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);
Modified: trunk/plug-ins/script-fu/script-fu-scripts.c
==============================================================================
--- trunk/plug-ins/script-fu/script-fu-scripts.c (original)
+++ trunk/plug-ins/script-fu/script-fu-scripts.c Thu Sep 18 14:12:30 2008
@@ -582,10 +582,10 @@
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))
Modified: trunk/plug-ins/script-fu/script-fu-server.c
==============================================================================
--- trunk/plug-ins/script-fu/script-fu-server.c (original)
+++ trunk/plug-ins/script-fu/script-fu-server.c Thu Sep 18 14:12:30 2008
@@ -451,17 +451,17 @@
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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]