summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/browser_context_qt.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/browser_context_qt.h b/lib/browser_context_qt.h
index 065fb203f..8ba01779a 100644
--- a/lib/browser_context_qt.h
+++ b/lib/browser_context_qt.h
@@ -49,6 +49,7 @@
#include "shared/shared_globals.h"
#include "base/time/time.h"
+#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/resource_context.h"
#include "content/public/browser/storage_partition.h"
@@ -76,7 +77,11 @@ public:
downloadManagerDelegate.reset(new DownloadManagerDelegateQt);
}
- virtual ~BrowserContextQt() Q_DECL_OVERRIDE {}
+ virtual ~BrowserContextQt() Q_DECL_OVERRIDE
+ {
+ if (resourceContext)
+ content::BrowserThread::DeleteSoon(content::BrowserThread::IO, FROM_HERE, resourceContext.release());
+ }
virtual base::FilePath GetPath() const Q_DECL_OVERRIDE
{