mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- dont double free memory
svn path=/trunk/; revision=27160
This commit is contained in:
@@ -301,6 +301,7 @@ IntDestroyMenuObject(PMENU_OBJECT Menu,
|
||||
RemoveEntryList(&Menu->ListEntry);
|
||||
}
|
||||
|
||||
WindowStation = Menu->Process->Win32WindowStation;
|
||||
Status = ObReferenceObjectByHandle(Menu->Process->Win32WindowStation,
|
||||
0,
|
||||
ExWindowStationObjectType,
|
||||
|
||||
@@ -799,7 +799,6 @@ IntGetSystemMenu(PWINDOW_OBJECT Window, BOOL bRevert, BOOL RetMenu)
|
||||
ret = SysMenu;
|
||||
}
|
||||
IntDestroyMenuObject(Menu, FALSE, TRUE);
|
||||
IntReleaseMenuObject(Menu);
|
||||
}
|
||||
if(RetMenu)
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user