diff --git a/src/windows.cpp b/src/windows.cpp index 5c57384429..de295d90b0 100644 --- a/src/windows.cpp +++ b/src/windows.cpp @@ -721,6 +721,7 @@ class MySystem: public System { } virtual void dispose() { + system = 0; CloseHandle(mutex); ::free(this); }