Skip to content

Commit 444d143

Browse files
authored
Add printLeaks call to alternative Win32 main method (#2278)
Add printLeaks call to alternative main method
1 parent 5507b5d commit 444d143

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

templates/common/proj.win32/main.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL
5959
}
6060
#else
6161
int main(int, char**) {
62-
return axmol_main();
62+
auto result = axmol_main();
63+
64+
#if AX_OBJECT_LEAK_DETECTION
65+
Object::printLeaks();
66+
#endif
67+
68+
return result;
6369
}
6470
#endif

0 commit comments

Comments
 (0)