-
Committer:
CI bot
-
Author(s):
Alberto Aguirre
-
Date:
2014-09-26 04:05:41 UTC
-
mfrom:
(67.1.3 fix-1373722)
-
Revision ID:
ps-jenkins@lists.canonical.com-20140926040541-0n4olqyi2hhsp14u
Prevent dead object access by asynchronous calls to clear_wakelock in media::PlayerImplementation::Private
On an player engine state change - detached threads are launched to clear system/display wakelocks in the future.
Before those threads get a chance to execute, media::PlayerImplementation can be destroyed. By holding a weak_ptr to
media::PlayerImplementation::Private in the launched threads, access to dead Private objects is prevented. Fixes: 1373722
Approved by: Jim Hodapp, PS Jenkins bot