git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
971896b
)
Don't crash when using libgmalloc on Leopard (closes #1501)
author
Felix Paul Kühne
<fkuehne@videolan.org>
Wed, 26 Mar 2008 11:25:40 +0000
(12:25 +0100)
committer
Felix Paul Kühne
<fkuehne@videolan.org>
Wed, 26 Mar 2008 11:25:40 +0000
(12:25 +0100)
Patch by Drew Yao. Thanks and sorry for the long time it took this simple fix to be committed!
modules/gui/macosx/intf.m
patch
|
blob
|
history
diff --git
a/modules/gui/macosx/intf.m
b/modules/gui/macosx/intf.m
index
9fdfed3
..
7a98a5c
100644
(file)
--- a/
modules/gui/macosx/intf.m
+++ b/
modules/gui/macosx/intf.m
@@
-409,11
+409,13
@@
static VLCMain *_o_sharedMainInstance = nil;
- (id)init
{
- if( _o_sharedMainInstance) {
+ if( _o_sharedMainInstance)
+ {
[self dealloc];
- } else {
+ return _o_sharedMainInstance;
+ }
+ else
_o_sharedMainInstance = [super init];
- }
o_about = [[VLAboutBox alloc] init];
o_prefs = [[VLCPrefs alloc] init];