Bug 884440 - Remove item correctly from vector. r=doublec

This commit is contained in:
Sotaro Ikeda 2013-06-19 13:40:31 -04:00
Родитель 51b0bcb258
Коммит 5080be29cf
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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++;