Fix exception handling in Symbian event dispatcher
authorMurray Read <ext-murray.2.read@nokia.com>
Thu, 26 Jan 2012 12:33:39 +0000 (12:33 +0000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 26 Jan 2012 16:42:16 +0000 (17:42 +0100)
commit8c5614dda55ed7b539e06a3846618df8255dd18c
tree78748a0e549aec70b6198210f40fe1ee3e7eb3c8
parentdd36b63ccac0026ac0a22681052e88cff8258923
Fix exception handling in Symbian event dispatcher

The Symbian event dispatcher handles exceptions from active objects
as well as leaves. But if the active object throws while it has
something pushed on the cleanup stack, the exception must be converted
to a leave for the cleanup to happen and the cleanup stack balance to
be maintained.

Task-number: ou1cimx1#970701
Change-Id: I6c8eed61cb1666e36eb4858a2c72ad0d8c6b0c8f
Reviewed-by: Shane Kearns <ext-shane.2.kearns@nokia.com>
src/corelib/kernel/qeventdispatcher_symbian.cpp
tests/auto/symbian/qmainexceptions/tst_qmainexceptions.cpp