Christoph von Wittich: fix for bug 822 ("Resource leak in calc").
Modified: trunk/reactos/subsys/system/calc/winecalc.c
_____
Modified: trunk/reactos/subsys/system/calc/winecalc.c
--- trunk/reactos/subsys/system/calc/winecalc.c 2005-09-26 13:02:01 UTC
(rev 18093)
+++ trunk/reactos/subsys/system/calc/winecalc.c 2005-09-26 15:50:37 UTC
(rev 18094)
@@ -2847,6 +2847,15 @@
{
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++)
DestroyWindow(calc->cb[i].hBtn);
}