diff libpurple/protocols/msn/slplink.c @ 22808:f62a4a7fe365

Fix a number of leaks. As far as I can tell, MSNP14 now logs in without leaking.
author Daniel Atallah <daniel.atallah@gmail.com>
date Sat, 03 May 2008 23:51:43 +0000
parents 05cb3f04c01e
children d04d24b1db9b 945bf99cb233
line wrap: on
line diff
--- a/libpurple/protocols/msn/slplink.c	Sat May 03 21:03:13 2008 +0000
+++ b/libpurple/protocols/msn/slplink.c	Sat May 03 23:51:43 2008 +0000
@@ -101,11 +101,8 @@
 
 	session = slplink->session;
 
-	if (slplink->local_user != NULL)
-		g_free(slplink->local_user);
-
-	if (slplink->remote_user != NULL)
-		g_free(slplink->remote_user);
+	g_free(slplink->local_user);
+	g_free(slplink->remote_user);
 
 #if 0
 	if (slplink->directconn != NULL)