diff src/protocols/msn/msn.c @ 2265:2f03cfd21fc2

[gaim-migrate @ 2275] better notification committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 10 Sep 2001 23:23:54 +0000
parents 8c4ff1a368bd
children 0b5c3338fa3d
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Mon Sep 10 23:09:58 2001 +0000
+++ b/src/protocols/msn/msn.c	Mon Sep 10 23:23:54 2001 +0000
@@ -549,8 +549,10 @@
 
 	if (source == -1 || !g_slist_find(connections, gc)) {
 		close(source);
-		g_free(ms->auth);
-		g_free(ms);
+		if (g_slist_find(connections, gc)) {
+			msn_kill_switch(ms);
+			do_error_dialog(_("MSN Error"), _("Gaim was unable to send a message"));
+		}
 		return;
 	}