- dont double free memory

svn path=/trunk/; revision=27160
This commit is contained in:
Johannes Anderwald 2007-06-12 19:33:44 +00:00
parent 13eda403d7
commit 4d8d218004
2 changed files with 1 additions and 1 deletions

View file

@ -301,6 +301,7 @@ IntDestroyMenuObject(PMENU_OBJECT Menu,
RemoveEntryList(&Menu->ListEntry);
}
WindowStation = Menu->Process->Win32WindowStation;
Status = ObReferenceObjectByHandle(Menu->Process->Win32WindowStation,
0,
ExWindowStationObjectType,

View file

@ -799,7 +799,6 @@ IntGetSystemMenu(PWINDOW_OBJECT Window, BOOL bRevert, BOOL RetMenu)
ret = SysMenu;
}
IntDestroyMenuObject(Menu, FALSE, TRUE);
IntReleaseMenuObject(Menu);
}
if(RetMenu)
return ret;