summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriain <iain@linux.intel.com>2011-12-05 20:47:32 +0000
committeriain <iain@linux.intel.com>2011-12-05 20:47:32 +0000
commit8078296aeedd7bd823e63619d7d056c01679e9de (patch)
treedb3ca79339f7dc3590c13f1772ff4aa9597f770a
parente301ad4a91b4650c97bdc9e8e0769f15b1797274 (diff)
Fix memory leak on input error.
A new GError was being created when an error occurred reading from the IOChannel. Nothing was being done with this error and it was just leaking.
-rw-r--r--src/gypsy-client.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gypsy-client.c b/src/gypsy-client.c
index 8d59790..8b1763b 100644
--- a/src/gypsy-client.c
+++ b/src/gypsy-client.c
@@ -278,7 +278,6 @@ gps_channel_input (GIOChannel *channel,
GIOStatus status;
char *buf;
gsize chars_left_in_buffer, chars_read;
- GError *error = NULL;
priv = GET_PRIVATE (userdata);
@@ -298,7 +297,6 @@ gps_channel_input (GIOChannel *channel,
gypsy_parser_received_data (priv->parser, chars_read, NULL);
} else {
GYPSY_NOTE (CLIENT, "Read error: %s", g_strerror (errno));
- g_set_error (&error, GYPSY_ERROR, errno, g_strerror (errno));
}
return TRUE;