Fix a leak in WinLauncher shutdown
Reviewed by Sam Weinig.
* WinLauncher/WinLauncher.cpp:
(_tWinMain): Replaced a delete with a Release. We can't delete the
WebView properly since we only have a pointer to one of its
interfaces. We also shouldn't be deleting COM objects directly anyway,
for a number of reasons.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38955 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKitTools/WinLauncher/WinLauncher.cpp b/WebKitTools/WinLauncher/WinLauncher.cpp
index 0b2193c..f9f0ea7 100644
--- a/WebKitTools/WinLauncher/WinLauncher.cpp
+++ b/WebKitTools/WinLauncher/WinLauncher.cpp
@@ -232,7 +232,7 @@
}
exit:
- delete gWebView;
+ gWebView->Release();
shutDownWebKit();
#ifdef _CRTDBG_MAP_ALLOC
_CrtDumpMemoryLeaks();