diff libgaim/protocols/oscar/flap_connection.c @ 14402:648e33275d9d

[gaim-migrate @ 17110] Make peer disconnection error messages a little better for oscar ft and direct connect committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 01 Sep 2006 08:52:23 +0000
parents 92eb7a040663
children f3573d941d66
line wrap: on
line diff
--- a/libgaim/protocols/oscar/flap_connection.c	Fri Sep 01 08:19:31 2006 +0000
+++ b/libgaim/protocols/oscar/flap_connection.c	Fri Sep 01 08:52:23 2006 +0000
@@ -316,6 +316,7 @@
 	gaim_debug_info("oscar", "Scheduling destruction of FLAP "
 			"connection of type 0x%04hx\n", conn->type);
 	conn->disconnect_reason = reason;
+	g_free(conn->error_message);
 	conn->error_message = g_strdup(error_message);
 	conn->destroy_timeout = gaim_timeout_add(0, flap_connection_destroy_cb, conn);
 }