CWebCore::~CWebCore () { // Unregister schema factories CefClearSchemeHandlerFactories(); // Shutdown CEF CefShutdown(); delete m_pRequestsGUI; delete m_pXmlConfig; }
WebBrowserHost::~WebBrowserHost() { instance_ = 0; // TODO: Better place for this? If there are issues with cookies not persisting // it is possible the async nature of this call could be a culprit CefRefPtr<CefCookieManager> manager = CefCookieManager::GetGlobalManager(nullptr); if (manager.get()) manager->FlushStore(nullptr); CefClearSchemeHandlerFactories(); CefShutdown(); }
WebBrowserHost::~WebBrowserHost() { instance_ = 0; CefClearSchemeHandlerFactories(); CefShutdown(); }