Mac: The MessageLoop::AutoRunState scope in Run() never exits so clear the state_ variable in the CefMessageLoopForUI destructor to avoid an assertion in the MessageLoop destructor (issue #443).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@413 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2011-12-08 15:18:19 +00:00
parent fe80635c69
commit 8a1b694797
1 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,14 @@ public:
: is_iterating_(true)
{
}
#if defined(OS_MACOSX)
virtual ~CefMessageLoopForUI()
{
// On Mac the MessageLoop::AutoRunState scope in Run() never exits so clear
// the state_ variable to avoid an assertion in the MessageLoop destructor.
state_ = NULL;
}
#endif
// Returns the MessageLoopForUI of the current thread.
static CefMessageLoopForUI* current() {