blob: 5126cc91c4b523915f25e4c79df9d289f15c07e6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- lib/network.c.orig 2007-12-07 20:46:47.000000000 +0530
+++ lib/network.c 2007-12-23 22:45:38.000000000 +0530
@@ -1261,8 +1261,10 @@
ssl_free_client_credentials(s->ssl_credentials);
#endif
- g_iconv_close(s->connection.incoming_iconv);
- g_iconv_close(s->connection.outgoing_iconv);
+ if (s->connection.incoming_iconv != (GIConv)-1)
+ g_iconv_close(s->connection.incoming_iconv);
+ if (s->connection.outgoing_iconv != (GIConv)-1)
+ g_iconv_close(s->connection.outgoing_iconv);
g_free(s);
}
|