-
Committer:
CI Train Bot
-
Author(s):
Gerry Boland
-
Date:
2015-11-25 15:38:44 UTC
-
mfrom:
(404.3.9 possibl-crash-fix1)
-
Revision ID:
ci-train-bot@canonical.com-20151125153844-i2gah1r4f3tlxpbw
Manage frameSwapped signal/slot connection with MirSurface more strictly to avoid crash.
Direct Signal/slot connections across thread boundaries incur the same risks as any cross-thread calls. While connect/disconnect are thread safe methods, it is possible for a slot to be called while the slot owner is being deconstructed - and so not yet disconnected.
So watch for the Item's window change signal and disconnect signal immediately. Also move slot ownership to MirSurfaceItem to auto-disconnect more aggressively.
Fixes: #1517571
Approved by: Daniel d'Andrada