From 1089374439fa6073800679817198e3c39283113e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Fri, 9 Mar 2012 12:31:47 +0100
Subject: Fixed Growl crash.


diff --git a/SwifTools/Notifier/GrowlNotifier.mm b/SwifTools/Notifier/GrowlNotifier.mm
index 31eabd3..b0f26ce 100644
--- a/SwifTools/Notifier/GrowlNotifier.mm
+++ b/SwifTools/Notifier/GrowlNotifier.mm
@@ -35,6 +35,7 @@ class GrowlNotifier::Private {
 GrowlNotifier::GrowlNotifier(const std::string& name) {
 	p = boost::make_shared<Private>();
 	p->delegate = boost::intrusive_ptr<GrowlNotifierDelegate>([[GrowlNotifierDelegate alloc] init], false);
+	p->delegate.get().notifier = this;
 	p->delegate.get().name = STD2NSSTRING(name);
 	
 	NSMutableArray* allNotifications = [[NSMutableArray alloc] init];
diff --git a/SwifTools/Notifier/GrowlNotifierDelegate.h b/SwifTools/Notifier/GrowlNotifierDelegate.h
index 7a556cc..b7f0968 100644
--- a/SwifTools/Notifier/GrowlNotifierDelegate.h
+++ b/SwifTools/Notifier/GrowlNotifierDelegate.h
@@ -18,6 +18,7 @@ namespace Swift {
 
 @property (nonatomic, retain) NSDictionary* registrationDictionary;
 @property (nonatomic, copy) NSString* name;
+@property (nonatomic) Swift::GrowlNotifier* notifier;
 
 - (NSDictionary*) registrationDictionaryForGrowl;
 - (NSString *) applicationNameForGrowl;
diff --git a/SwifTools/Notifier/GrowlNotifierDelegate.mm b/SwifTools/Notifier/GrowlNotifierDelegate.mm
index c7f725f..6952cab 100644
--- a/SwifTools/Notifier/GrowlNotifierDelegate.mm
+++ b/SwifTools/Notifier/GrowlNotifierDelegate.mm
@@ -12,6 +12,7 @@
 
 @synthesize registrationDictionary;
 @synthesize name;
+@synthesize notifier;
 
 using namespace Swift;
 
-- 
cgit v0.10.2-6-g49f6