Bug 1194014 - Fix erroneous resource lookup and potential element overwrite. r=jya

This commit is contained in:
Eugen Sawin 2015-08-26 22:07:48 +02:00
Родитель 98b7a907e8
Коммит 6e8ed1ecdd
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -461,7 +461,7 @@ AndroidMediaResourceServer::AddResource(mozilla::MediaResource* aResource, nsCSt
MutexAutoLock lock(mMutex);
// Adding a resource URL that already exists is considered an error.
if (mResources.find(aUrl) != mResources.end()) return NS_ERROR_FAILURE;
if (mResources.find(url) != mResources.end()) return NS_ERROR_FAILURE;
mResources[url] = aResource;
}