зеркало из https://github.com/mozilla/gecko-dev.git
Bug 884440 - Remove item correctly from vector. r=doublec
This commit is contained in:
Родитель
51b0bcb258
Коммит
5080be29cf
|
@ -160,7 +160,7 @@ void MediaResourceManagerService::cancelClientLocked(const sp<IBinder>& binder)
|
|||
Fifo::iterator it(mVideoCodecRequestQueue.begin());
|
||||
while (it != mVideoCodecRequestQueue.end()) {
|
||||
if (*it == binder) {
|
||||
*it = NULL;
|
||||
it = mVideoCodecRequestQueue.erase(it);
|
||||
continue;
|
||||
}
|
||||
it++;
|
||||
|
|
Загрузка…
Ссылка в новой задаче