mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
libcef:
- Fix a leak of CachedResource objects due to the Cache never being cleared (issue #15). - Fix a crash when the main application exits while popup windows exist due to a race condition when deleting CefBrowser objects. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@49 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#undef LOG
|
||||
#include "config.h"
|
||||
MSVC_PUSH_WARNING_LEVEL(0);
|
||||
#include "Cache.h"
|
||||
#include "TextEncoding.h"
|
||||
#include "webkit/glue/webframe_impl.h"
|
||||
MSVC_POP_WARNING();
|
||||
@@ -204,4 +205,11 @@ void SetCacheMode(bool enabled) {
|
||||
// Used in benchmarking, Ignored for CEF.
|
||||
}
|
||||
|
||||
void ClearCache()
|
||||
{
|
||||
// Clear the cache by disabling it and then re-enabling it.
|
||||
WebCore::cache()->setDisabled(true);
|
||||
WebCore::cache()->setDisabled(false);
|
||||
}
|
||||
|
||||
} // namespace webkit_glue
|
||||
|
Reference in New Issue
Block a user