From b3a5cdc5fbab8884755690286211fa6b3425d9d3 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 26 Jan 2007 14:06:08 +0000 Subject: [PATCH] Kai Jourdan spotted a rather embarrassing double-free, and Minefield confirms that it's a real problem. [originally from svn r7168] --- windows/window.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/windows/window.c b/windows/window.c index dca27a44..477e6333 100644 --- a/windows/window.c +++ b/windows/window.c @@ -816,9 +816,8 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) sfree(handles); if (must_close_session) close_session(); - } - - sfree(handles); + } else + sfree(handles); while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { if (msg.message == WM_QUIT) -- 2.45.2