diff --git a/libcef_dll/libcef_dll.cc b/libcef_dll/libcef_dll.cc index 7c5125881..6f1aa1559 100644 --- a/libcef_dll/libcef_dll.cc +++ b/libcef_dll/libcef_dll.cc @@ -30,6 +30,7 @@ CEF_EXPORT void cef_shutdown() { CefShutdown(); +#ifdef _DEBUG // Check that all wrapper objects have been destroyed DCHECK(CefBrowserCppToC::DebugObjCt == 0); DCHECK(CefRequestCppToC::DebugObjCt == 0); @@ -40,6 +41,7 @@ CEF_EXPORT void cef_shutdown() DCHECK(CefVariantCppToC::DebugObjCt == 0); DCHECK(CefHandlerCToCpp::DebugObjCt == 0); DCHECK(CefJSHandlerCToCpp::DebugObjCt == 0); +#endif // _DEBUG } CEF_EXPORT void cef_do_message_loop_work() diff --git a/libcef_dll/wrapper/libcef_dll_wrapper.cc b/libcef_dll/wrapper/libcef_dll_wrapper.cc index 991e2bdfd..186cc035b 100644 --- a/libcef_dll/wrapper/libcef_dll_wrapper.cc +++ b/libcef_dll/wrapper/libcef_dll_wrapper.cc @@ -25,6 +25,7 @@ void CefShutdown() { cef_shutdown(); +#ifdef _DEBUG // Check that all wrapper objects have been destroyed DCHECK(CefHandlerCppToC::DebugObjCt == 0); DCHECK(CefJSHandlerCppToC::DebugObjCt == 0); @@ -35,6 +36,7 @@ void CefShutdown() DCHECK(CefStreamReaderCToCpp::DebugObjCt == 0); DCHECK(CefStreamWriterCToCpp::DebugObjCt == 0); DCHECK(CefVariantCToCpp::DebugObjCt == 0); +#endif // _DEBUG } void CefDoMessageLoopWork()