From: Kevin Wasserman Date: Wed, 18 Jul 2012 21:32:31 +0000 (-0400) Subject: Call CWinAppEx::InitInstance() X-Git-Tag: krb5-1.11-alpha1~241 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=78b3e95e27ee1f53fc9e7cb2efda617ccd761bd7;p=thirdparty%2Fkrb5.git 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 --- diff --git a/src/windows/leash/Leash.cpp b/src/windows/leash/Leash.cpp index fe2e7e7dac..25a17de5df 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));