[vlc-commits] macosx: do not store preferences controller in weak outlet
David Fuhrmann
git at videolan.org
Sun Jul 2 16:49:52 CEST 2017
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Jul 2 16:48:58 2017 +0200| [76f5f27d473db0869a7cfe6fd6e43b3228e2af79] | committer: David Fuhrmann
macosx: do not store preferences controller in weak outlet
This will crash at runtime on 10.7.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=76f5f27d473db0869a7cfe6fd6e43b3228e2af79
---
modules/gui/macosx/prefs.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/macosx/prefs.m b/modules/gui/macosx/prefs.m
index 449857fd33..aa167f0621 100644
--- a/modules/gui/macosx/prefs.m
+++ b/modules/gui/macosx/prefs.m
@@ -87,7 +87,7 @@
NSMutableArray *_options;
NSMutableArray *_subviews;
}
- at property (readwrite, weak) VLCPrefs *prefsViewController;
+ at property (readwrite, unsafe_unretained) VLCPrefs *prefsViewController;
- (id)initWithName:(NSString*)name;
More information about the vlc-commits
mailing list