Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 891445 - Fix incorrect pointer comparison. r=doublec
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotaro Ikeda committed Jul 12, 2013
1 parent 66793aa commit 5371dd2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void MediaResourceManagerService::cancelClientLocked(const sp<IBinder>& binder)
// Clear the request from request queue.
Fifo::iterator it(mVideoCodecRequestQueue.begin());
while (it != mVideoCodecRequestQueue.end()) {
if (*it == binder) {
if ((*it).get() == binder.get()) {
it = mVideoCodecRequestQueue.erase(it);
continue;
}
Expand All @@ -168,7 +168,7 @@ void MediaResourceManagerService::cancelClientLocked(const sp<IBinder>& binder)

// Clear the client from the resource
for (int i=0 ; i<mVideoDecoderCount ; i++) {
if (mVideoDecoderSlots[i].mClient == binder) {
if (mVideoDecoderSlots[i].mClient.get() == binder.get()) {
mVideoDecoderSlots[i].mClient = NULL;
}
}
Expand Down

0 comments on commit 5371dd2

Please sign in to comment.