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 https://github.com/krb5/krb5/commit/78b3e95e27ee1f53fc9e7cb2efda617ccd761bd7 Author: Kevin Wasserman Committer: Ben Kaduk Commit: 78b3e95e27ee1f53fc9e7cb2efda617ccd761bd7 Branch: master src/windows/leash/Leash.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)