[vlc-devel] commit: macosx: Fix a typo that leads to a crash in _removeOldPreferences. (Pierre d'Herbemont )

git version control git at videolan.org
Sat Sep 27 13:17:18 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Sep 27 13:18:40 2008 +0200| [5cd368bc0d10c800757d1d47722bf8204345aa49] | committer: Pierre d'Herbemont 

macosx: Fix a typo that leads to a crash in _removeOldPreferences.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5cd368bc0d10c800757d1d47722bf8204345aa49
---

 modules/gui/macosx/intf.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 8a62448..84de154 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -2292,7 +2292,7 @@ end:
         return;
     }
 
-    NSArray * ourPreferences = [NSArray arrayWithObjects:@"org.videolan.vlc.plist", @"VLC"];
+    NSArray * ourPreferences = [NSArray arrayWithObjects:@"org.videolan.vlc.plist", @"VLC", nil];
 
     /* Move the file to trash so that user can find them later */
     [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:preferences destination:nil files:ourPreferences tag:0];




More information about the vlc-devel mailing list