]> git.sesse.net Git - vlc/commit
macosx: fix VLC object leaks
authorDerk-Jan Hartman <hartman@videolan.org>
Fri, 3 Apr 2009 11:06:30 +0000 (13:06 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Fri, 3 Apr 2009 11:11:07 +0000 (13:11 +0200)
commit8bfec18d590fc1b109016c030402856285918294
tree1b28bb1d269d578b9638d9a5475fe29f72f1c10e
parentfcf777db2892f7467d74b549ef2ac626ba312448
macosx: fix VLC object leaks

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).
modules/gui/macosx/controls.m