Fix KERN-EXEC 0 panic on exit when bearer is searching for WLANs
authorShane Kearns <shane.kearns@accenture.com>
Thu, 6 Jan 2011 15:16:03 +0000 (15:16 +0000)
committerShane Kearns <shane.kearns@accenture.com>
Thu, 6 Jan 2011 15:26:50 +0000 (15:26 +0000)
commit66cfe2a776b7542fe1d8bae9c0d7bb5be79406fd
tree01c66deca46f8e8098973552d71a7661eda1dba9
parent97e045f48a331ff97b87bd207fb811277a4fa695
Fix KERN-EXEC 0 panic on exit when bearer is searching for WLANs

The access point scanner cancels itself in the destructor.
This requires the handle to be valid, but it was closed in the symbian
engine destructor immediately before deleting the AP scanner.
Because of the way symbian active objects work, the crashing function
is only called if there was an asynchronous request in progress.
So it could be missed in cases where the scan completes faster than the
test case.

Task-number: QTBUG-16484
Reviewed-by: Markus Goetz
src/plugins/bearer/symbian/symbianengine.cpp