[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:20:37 CEST 2008


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

macosx: Fix a typo that leads to a crash in _removeOldPreferences.
(cherry picked from commit 5cd368bc0d10c800757d1d47722bf8204345aa49)

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

 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 c1e274b..03a2851 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -2255,7 +2255,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