From: Daniel Carl Date: Wed, 31 Dec 2014 22:58:28 +0000 (+0100) Subject: Fixed wrong type given to g_error_free. X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=8ec45306f841d10844ce9bced1ab5befbb040b82;p=vimb.git Fixed wrong type given to g_error_free. --- 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);