From b25c6f15c62f226c31ad514a973b0920b89b20c5 Mon Sep 17 00:00:00 2001
From: Thilo Cestonaro <thilo@cestona.ro>
Date: Fri, 1 Jul 2011 12:57:49 +0200
Subject: Fix for a SIGABRT when reconnecting

License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php

diff --git a/Swiften/Client/CoreClient.cpp b/Swiften/Client/CoreClient.cpp
index ab9e947..4b438f6 100644
--- a/Swiften/Client/CoreClient.cpp
+++ b/Swiften/Client/CoreClient.cpp
@@ -87,6 +87,7 @@ void CoreClient::handleConnectorFinished(boost::shared_ptr<Connection> connectio
 	foreach(ConnectionFactory* f, proxyConnectionFactories) {
 		delete f;
 	}
+	proxyConnectionFactories.clear();
 
 	if (!connection) {
 		if (options.forgetPassword) {
-- 
cgit v0.10.2-6-g49f6