pidgin/pidgin

[gaim-migrate @ 16017]

2006-04-12, Daniel Atallah
b077f2d6f20e
Parents b41b3225c2ce
Children 35dd31f81593
[gaim-migrate @ 16017]
Leak fix.
--- a/src/protocols/msn/httpconn.c Wed Apr 12 01:18:56 2006 +0000
+++ b/src/protocols/msn/httpconn.c Wed Apr 12 01:51:57 2006 +0000
@@ -329,6 +329,7 @@
close(httpconn->fd);
+ g_free(httpconn->rx_buf);
httpconn->rx_buf = NULL;
httpconn->rx_len = 0;
@@ -394,8 +395,7 @@
return;
}
- if (httpconn->rx_buf != NULL)
- g_free(httpconn->rx_buf);
+ g_free(httpconn->rx_buf);
httpconn->rx_buf = NULL;
httpconn->rx_len = 0;
@@ -733,18 +733,15 @@
if (!wasted)
{
- if (httpconn->full_session_id != NULL)
- g_free(httpconn->full_session_id);
+ g_free(httpconn->full_session_id);
httpconn->full_session_id = full_session_id;
- if (httpconn->session_id != NULL)
- g_free(httpconn->session_id);
+ g_free(httpconn->session_id);
httpconn->session_id = session_id;
- if (httpconn->host != NULL)
- g_free(httpconn->host);
+ g_free(httpconn->host);
httpconn->host = gw_ip;
}