[SERVMAN]
[reactos.git] / reactos / base / applications / mscutils / servman / mainwnd.c
index c1e659f..a28e9c8 100644 (file)
@@ -880,10 +880,7 @@ MainWndProc(HWND hwnd,
 
         case WM_CLOSE:
         {
 
         case WM_CLOSE:
         {
-            HeapFree(ProcessHeap,
-                     0,
-                     Info->pAllServices);
-
+            FreeServiceList(Info);
             DestroyMenu(Info->hShortcutMenu);
             DestroyWindow(hwnd);
         }
             DestroyMenu(Info->hShortcutMenu);
             DestroyWindow(hwnd);
         }