mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-17 04:30:46 +01:00
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)
|
||||
{
|
||||
}
|
||||
#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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user