[vlc-commits] macosx: Remove leak in file type handler initialization
David Fuhrmann
git at videolan.org
Sun Jun 10 14:06:22 CEST 2018
vlc/vlc-3.0 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Jun 9 20:00:34 2018 +0200| [c1976f2ecddaa7b2fa889b6412fab3f89df493e5] | committer: Felix Paul Kühne
macosx: Remove leak in file type handler initialization
(cherry picked from commit cce38c3b27504bdf1d5b21e7c5673894b3776978)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=c1976f2ecddaa7b2fa889b6412fab3f89df493e5
---
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 f9b0798037..a5f50b1b8f 100644
--- a/modules/gui/macosx/VLCSimplePrefsController.m
+++ b/modules/gui/macosx/VLCSimplePrefsController.m
@@ -1318,7 +1318,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]; \
@@ -1331,7 +1331,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