• Derk-Jan Hartman's avatar
    macosx: fix VLC object leaks · 8bfec18d
    Derk-Jan Hartman authored
    When building the menu's, autorelease the VLCAutoGeneratedMenu's instead of retaining. The NSMenuItem will do a retain/release for the live of the object in the NSMenuItem and thus once the menu's are done using the object, their retaincount will be 0 and they will be dealloc'ed at the end of the EventLoop. (An eventloop is One run of GUI updates you might say).
    8bfec18d
controls.m 36.3 KB