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 (cherry picked from commit 78b3e95e27ee1f53fc9e7cb2efda617ccd761bd7) https://github.com/krb5/krb5/commit/64b7bc335165da083995c1c69fd0d6b1eb424f82 Author: Kevin Wasserman Committer: Tom Yu Commit: 64b7bc335165da083995c1c69fd0d6b1eb424f82 Branch: krb5-1.10 src/windows/leash/Leash.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)