Fix crash on shutdown due to CefProcess not being destroyed immediately (issue #277).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@400 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-11-30 17:00:24 +00:00
parent 8bf0248429
commit 9fd169d16c
4 changed files with 6 additions and 14 deletions

View File

@@ -40,7 +40,7 @@ public:
// Returns true if the context is shutting down.
bool shutting_down() { return shutting_down_; }
scoped_refptr<CefProcess> process() { return process_; }
CefProcess* process() { return process_.get(); }
bool AddBrowser(CefRefPtr<CefBrowserImpl> browser);
bool RemoveBrowser(CefRefPtr<CefBrowserImpl> browser);
@@ -88,7 +88,7 @@ private:
bool shutting_down_;
// Manages the various process threads.
scoped_refptr<CefProcess> process_;
scoped_ptr<CefProcess> process_;
// Initialize the AtExitManager on the main application thread to avoid
// asserts and possible memory leaks.