[vlc-commits] macosx: Remove leak in file type handler initialization

David Fuhrmann git at videolan.org
Sun Jun 10 11:03:04 CEST 2018


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Jun  9 20:00:34 2018 +0200| [cce38c3b27504bdf1d5b21e7c5673894b3776978] | committer: David Fuhrmann

macosx: Remove leak in file type handler initialization

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

 modules/gui/macosx/VLCSimplePrefsController.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/VLCSimplePrefsController.m b/modules/gui/macosx/VLCSimplePrefsController.m
index a69a26fce9..63de13b3ba 100644
--- a/modules/gui/macosx/VLCSimplePrefsController.m
+++ b/modules/gui/macosx/VLCSimplePrefsController.m
@@ -1302,7 +1302,7 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
         NSUInteger count;
 
 #define fillUrlHandlerPopup( protocol, object ) \
-        handlers = (__bridge NSArray *)LSCopyAllHandlersForURLScheme(CFSTR( protocol )); \
+        handlers = (__bridge_transfer NSArray *)LSCopyAllHandlersForURLScheme(CFSTR( protocol )); \
         rawHandlers = [[NSMutableArray alloc] init]; \
         [object removeAllItems]; \
         count = [handlers count]; \
@@ -1315,7 +1315,7 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
                 [rawHandlers addObject: rawhandler]; \
             } \
         } \
-        [object selectItemAtIndex: [rawHandlers indexOfObject:(__bridge id)LSCopyDefaultHandlerForURLScheme(CFSTR( protocol ))]];
+        [object selectItemAtIndex: [rawHandlers indexOfObject:(__bridge_transfer id)LSCopyDefaultHandlerForURLScheme(CFSTR( protocol ))]];
 
         fillUrlHandlerPopup( "ftp", _urlhandler_ftpPopup);
         fillUrlHandlerPopup( "mms", _urlhandler_mmsPopup);



More information about the vlc-commits mailing list