Potential dead object access in media::PlayerImplementation::Private

Bug #1373722 reported by Alberto Aguirre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Media Hub
Fix Released
High
Alberto Aguirre

Bug Description

The engine state changed signal slot issues calls like these:

wakelock_timeout.reset(new timeout(4000, true, std::bind(&Private::clear_wakelock,
                                    this, std::placeholders::_1), current_wakelock_type()));

Which launches detached threads that accesses the media::PlayerImplementation::Private object instance.

If media::PlayerImplementation is destroyed before these threads get a chance to run, chaos will ensue...

Related branches

Changed in media-hub:
status: New → In Progress
assignee: nobody → Alberto Aguirre (albaguirre)
Jim Hodapp (jhodapp)
Changed in media-hub:
importance: Undecided → High
Jim Hodapp (jhodapp)
tags: added: rtm14 touch-2014-09-25
Jim Hodapp (jhodapp)
Changed in media-hub:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.