[vlc-devel] commit: macosx: Make sure we have an autorelease pool in -checkForUpdate. ( Pierre d'Herbemont )

git version control git at videolan.org
Sun Jun 15 23:19:24 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Jun 15 23:10:23 2008 +0200| [e503ff351bb7aa379b571ab861ef7949afab7e05]

macosx: Make sure we have an autorelease pool in -checkForUpdate.

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

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

diff --git a/modules/gui/macosx/update.m b/modules/gui/macosx/update.m
index 4a0b8db..449546b 100644
--- a/modules/gui/macosx/update.m
+++ b/modules/gui/macosx/update.m
@@ -208,7 +208,9 @@ static void updateCallback( void * p_data, bool b_success )
         return;
     update_Check( p_u, updateCallback, self );
 
+    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
     [[NSUserDefaults standardUserDefaults] setObject: [NSDate date] forKey: kPrefUpdateLastTimeChecked];
+    [pool release];
 }
 
 - (void)performDownload:(NSString *)path




More information about the vlc-devel mailing list