void uiUninit(void) { uninitMenus(); CoUninitialize(); uninitDialogHelper(); if (DeleteObject(hollowBrush) == 0) logLastError("error freeing hollow brush in uiUninit()"); if (SetConsoleCtrlHandler(consoleCtrlHandler, FALSE) == 0) logLastError("error unregistering console end session handler in uiUninit()"); uninitContainer(); if (DeleteObject(hMessageFont) == 0) logLastError("error deleting control font in uiUninit()"); unregisterWindowClass(); // no need to delete the default icon or cursor; see http://stackoverflow.com/questions/30603077/ uninitUtilWindow(); uninitResizes(); uninitTypes(); uninitAlloc(); }
void uiUninit(void) { uninitMenus(); uninitTypes(); uninitAlloc(); }