[Xfce4-commits] <xfce4-sensors-plugin:master> apply patch from bugzilla by revel at muub.net in parts: g_error_free does not work this way, but other enhancements do.
Fabian Nowak
noreply at xfce.org
Mon May 10 00:42:01 CEST 2010
Updating branch refs/heads/master
to abb0f0d6fcd9d6623e3ef399a7d2c7dbd4d352e8 (commit)
from f7bbbb39eed88b38f091b98aa9254d30163e3880 (commit)
commit abb0f0d6fcd9d6623e3ef399a7d2c7dbd4d352e8
Author: Fabian Nowak <timystery at arcor.de>
Date: Mon May 10 00:39:05 2010 +0200
apply patch from bugzilla by revel at muub.net in parts: g_error_free does
not work this way, but other enhancements do.
lib/hddtemp.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/lib/hddtemp.c b/lib/hddtemp.c
index 5089f34..23c9edd 100644
--- a/lib/hddtemp.c
+++ b/lib/hddtemp.c
@@ -207,8 +207,16 @@ read_disks_netcat (t_chip *chip)
result = g_spawn_command_line_sync ( (const gchar*) cmdline,
&stdoutput, &stderrput, &exit_status, &error);
+ g_free (cmdline);
+
if (!result)
+ {
+ g_free (error);
return;
+ }
+
+ if (stderrput)
+ g_free (stderrput);
//g_printf("stdouput=%s\n", stdoutput);
@@ -604,6 +612,9 @@ get_hddtemp_value (char* disk, gboolean *suppressmessage)
g_free (checktext);
#endif
+ if (error)
+ g_error_free(error);
+
TRACE ("leaves get_hddtemp_value");
return value;
More information about the Xfce4-commits
mailing list