summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2014-12-31 23:58:28 +0100
committerDaniel Carl <danielcarl@gmx.de>2014-12-31 23:58:28 +0100
commit8ec45306f841d10844ce9bced1ab5befbb040b82 (patch)
tree7de90e833329817c49a3961a3ea394b8b62739e5
parentf7e0b1eba95478a411cd53e3165e3c8cf8b18cef (diff)
Fixed wrong type given to g_error_free.
-rw-r--r--src/io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/io.c b/src/io.c
index c67764b..1307b1d 100644
--- a/src/io.c
+++ b/src/io.c
@@ -123,7 +123,7 @@ static gboolean socket_watch(GIOChannel *chan)
if (ret == G_IO_STATUS_ERROR || ret == G_IO_STATUS_EOF) {
if (ret == G_IO_STATUS_ERROR) {
g_warning("Error reading: %s", error->message);
- g_error_free(&error);
+ g_error_free(error);
}
/* shutdown and remove the client channel */
@@ -132,7 +132,7 @@ static gboolean socket_watch(GIOChannel *chan)
if (ret == G_IO_STATUS_ERROR) {
g_warning("Error closing: %s", error->message);
- g_error_free(&error);
+ g_error_free(error);
}
return false;
}
@@ -153,11 +153,11 @@ static gboolean socket_watch(GIOChannel *chan)
ret = g_io_channel_write_chars(chan, inputtext, -1, &len, &error);
if (ret == G_IO_STATUS_ERROR) {
g_warning("Error writing: %s", error->message);
- g_error_free(&error);
+ g_error_free(error);
}
if (g_io_channel_flush(chan, &error) == G_IO_STATUS_ERROR) {
g_warning("Error flushing: %s", error->message);
- g_error_free(&error);
+ g_error_free(error);
}
g_free(inputtext);