Project: SWT
Bug 258975 Menu createItem leaks NSMenuItem
Reported: 2008-12-16 12:30:04 | Status: resolved fixed

In createItem, we do the following: NSMenu emptyMenu = item.createEmptyMenu (); if (emptyMenu != null) { nsItem.setSubmenu (emptyMenu); } createEmptyMenu alloc the NSMenuItem, but we don't autorelease it and we don't keep a reference so we can't release it later.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Menu.java