Fixing MacOS native menu leak

git-svn-id: svn://10.0.0.236/trunk@64554 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
saari%netscape.com
2000-03-30 01:47:20 +00:00
parent 9c91417984
commit b50522bf09

View File

@@ -919,6 +919,9 @@ void nsWebShellWindow::DynamicLoadMenus(nsIDOMDocument * aDOMDoc, nsIWidget * aP
nsMenuEvent fake;
menuListener->MenuConstruct(fake, aParentWindow, menubarNode, mWebShell);
// Parent should own menubar now
NS_RELEASE(pnsMenuBar);
#ifdef USE_NATIVE_MENUS
#else
// Resize around the menu.