krb5 commit: Call CWinAppEx::InitInstance()

Benjamin Kaduk kaduk at MIT.EDU
Wed Aug 29 12:50:46 EDT 2012


https://github.com/krb5/krb5/commit/78b3e95e27ee1f53fc9e7cb2efda617ccd761bd7
commit 78b3e95e27ee1f53fc9e7cb2efda617ccd761bd7
Author: Kevin Wasserman <kevin.wasserman at painless-security.com>
Date:   Wed Jul 18 17:32:31 2012 -0400

    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 <kevin.wasserman at painless-security.com>
    
    ticket: 7306 (new)
    queue: kfw
    target_version: 1.10.4
    tags: pullup

 src/windows/leash/Leash.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/windows/leash/Leash.cpp b/src/windows/leash/Leash.cpp
index fe2e7e7..25a17de 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));


More information about the cvs-krb5 mailing list