summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2013-01-01 09:17:15 (GMT)
committerRemko Tronçon <git@el-tramo.be>2013-01-01 20:23:25 (GMT)
commit3adfdcfdeabddc25d8234cbea4e5cd05b72d0a49 (patch)
tree7a848fe0216da527f1ebaf43de232ee7c6960729 /SwifTools/Cocoa
parent6cedffb9368eeb05e199f7df80c4735f63735a94 (diff)
downloadswift-3adfdcfdeabddc25d8234cbea4e5cd05b72d0a49.zip
swift-3adfdcfdeabddc25d8234cbea4e5cd05b72d0a49.tar.bz2
Fix Objective-C memory leaks.
Change-Id: I62206d3813e8873f027ff46e525a30bcb2e945c9
Diffstat (limited to 'SwifTools/Cocoa')
-rw-r--r--SwifTools/Cocoa/CocoaAction.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/SwifTools/Cocoa/CocoaAction.mm b/SwifTools/Cocoa/CocoaAction.mm
index d560787..d315caf 100644
--- a/SwifTools/Cocoa/CocoaAction.mm
+++ b/SwifTools/Cocoa/CocoaAction.mm
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010 Remko Tronçon
+ * Copyright (c) 2010-2013 Remko Tronçon
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
*/
@@ -9,7 +9,7 @@
@implementation CocoaAction
- (id) initWithFunction: (boost::function<void()>*) f {
- if ([super init]) {
+ if ((self = [super init])) {
function = f;
}
return self;