Mercurial > cpython-lru_cache-weakref
view PC/WinMain.c @ 25838:8540887bcec6 2.2
Backport of 2.183:
Fix memory leak in add_subclass() found by NealN with valgrind.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 18 Oct 2002 13:42:21 +0000 |
| parents | a1f07fcc3d41 |
| children | f66b3a3509c7 |
line wrap: on
line source
/* Minimal main program -- everything is loaded from the library. */ #define WIN32_LEAN_AND_MEAN #include <windows.h> #include "Python.h" extern int Py_Main(int, char **); int WINAPI WinMain( HINSTANCE hInstance, /* handle to current instance */ HINSTANCE hPrevInstance, /* handle to previous instance */ LPSTR lpCmdLine, /* pointer to command line */ int nCmdShow /* show state of window */ ) { return Py_Main(__argc, __argv); }
