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:
parent
fe80635c69
commit
8a1b694797
|
@ -21,6 +21,14 @@ public:
|
||||||
: is_iterating_(true)
|
: 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.
|
// Returns the MessageLoopForUI of the current thread.
|
||||||
static CefMessageLoopForUI* current() {
|
static CefMessageLoopForUI* current() {
|
||||||
|
|
Loading…
Reference in New Issue