mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 941789 - Protect binderDied() by mutex. r=doublec
--HG-- extra : rebase_source : 9538d1cbc107f597ccc3237fce8da26040707ce6
This commit is contained in:
parent
e1bb3e926a
commit
985e08eeb9
@ -46,6 +46,7 @@ MediaResourceManagerService::~MediaResourceManagerService()
|
|||||||
void MediaResourceManagerService::binderDied(const wp<IBinder>& who)
|
void MediaResourceManagerService::binderDied(const wp<IBinder>& who)
|
||||||
{
|
{
|
||||||
if (who != NULL) {
|
if (who != NULL) {
|
||||||
|
Mutex::Autolock autoLock(mLock);
|
||||||
sp<IBinder> binder = who.promote();
|
sp<IBinder> binder = who.promote();
|
||||||
if (binder != NULL) {
|
if (binder != NULL) {
|
||||||
cancelClientLocked(binder);
|
cancelClientLocked(binder);
|
||||||
|
Loading…
Reference in New Issue
Block a user