mirror of
https://github.com/reactos/reactos.git
synced 2024-09-08 11:50:08 +00:00
Christoph von Wittich: fix for bug 822 ("Resource leak in calc").
svn path=/trunk/; revision=18094
This commit is contained in:
parent
2c830b3480
commit
7311a97c7e
|
@ -2847,6 +2847,15 @@ void DestroyCalc (CALC *calc)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (menus[MENU_STD] != 0)
|
||||||
|
DestroyMenu(menus[MENU_STD]);
|
||||||
|
|
||||||
|
if (menus[MENU_SCIMS] != 0)
|
||||||
|
DestroyMenu(menus[MENU_SCIMS]);
|
||||||
|
|
||||||
|
if (menus[MENU_SCIWS] != 0)
|
||||||
|
DestroyMenu(menus[MENU_SCIWS]);
|
||||||
|
|
||||||
for (i=0;i<calc->numButtons;i++)
|
for (i=0;i<calc->numButtons;i++)
|
||||||
DestroyWindow(calc->cb[i].hBtn);
|
DestroyWindow(calc->cb[i].hBtn);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue