mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
- dont double free memory
svn path=/trunk/; revision=27160
This commit is contained in:
parent
13eda403d7
commit
4d8d218004
2 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue