From 3cb4abb7840b473899b6f872da1b0be87036554b Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Fri, 27 Apr 2012 08:36:08 +0100
Subject: Avoid crash on exit


diff --git a/Swift/QtUI/QtSwift.cpp b/Swift/QtUI/QtSwift.cpp
index 60f93cc..9602336 100644
--- a/Swift/QtUI/QtSwift.cpp
+++ b/Swift/QtUI/QtSwift.cpp
@@ -200,7 +200,6 @@ QtSwift::QtSwift(const po::variables_map& options) : networkFactories_(&clientMa
 }
 
 QtSwift::~QtSwift() {
-	delete notifier_;
 	delete autoUpdater_;
 	foreach (QtUIFactory* factory, uiFactories_) {
 		delete factory;
@@ -208,6 +207,7 @@ QtSwift::~QtSwift() {
 	foreach (MainController* controller, mainControllers_) {
 		delete controller;
 	}
+	delete notifier_;
 	delete settingsHierachy_;
 	delete qtSettings_;
 	delete xmlSettings_;
-- 
cgit v0.10.2-6-g49f6