From 78b3e95e27ee1f53fc9e7cb2efda617ccd761bd7 Mon Sep 17 00:00:00 2001 From: Kevin Wasserman Date: Wed, 18 Jul 2012 17:32:31 -0400 Subject: Call CWinAppEx::InitInstance() Without this, AfxGlobalsAddRef() is never called, so AfxGlobalsRelease() does nothing, causing many leaks and a crash on exit in GdiplusShutdown() on Vista. Signed-off-by: Kevin Wasserman ticket: 7306 (new) queue: kfw target_version: 1.10.4 tags: pullup --- src/windows/leash/Leash.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/windows/leash') diff --git a/src/windows/leash/Leash.cpp b/src/windows/leash/Leash.cpp index fe2e7e7da..25a17de5d 100644 --- a/src/windows/leash/Leash.cpp +++ b/src/windows/leash/Leash.cpp @@ -345,6 +345,9 @@ BOOL CLeashApp::InitInstance() if (!FirstInstance()) return FALSE; + if (!CWinAppEx::InitInstance()) + return FALSE; + //register our unique wnd class name to find it later WNDCLASS wndcls; memset(&wndcls, 0, sizeof(WNDCLASS)); -- cgit