summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qeventdispatcher_symbian.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_symbian.cpp b/src/corelib/kernel/qeventdispatcher_symbian.cpp
index fca2feb..2d01cda 100644
--- a/src/corelib/kernel/qeventdispatcher_symbian.cpp
+++ b/src/corelib/kernel/qeventdispatcher_symbian.cpp
@@ -846,10 +846,15 @@ private:
void IdleLoop()
{
+ // Create cleanup stack.
+ // Mutex handling may contain cleanupstack usage.
+ CTrapCleanup *cleanup = CTrapCleanup::New();
+ q_check_ptr(cleanup);
while (!m_stop) {
m_kick.acquire();
m_state = STATE_RUN;
}
+ delete cleanup;
}
static void StopIdleDetectorThread();