Bug 1194014 - Fix MediaResource leaking caused by redundant AddRef. r=jya

This commit is contained in:
Eugen Sawin 2015-08-26 22:05:45 +02:00
parent ae79614638
commit 111366aa0e

View File

@ -288,7 +288,6 @@ MPAPI::Decoder *AndroidMediaPluginHost::CreateDecoder(MediaResource *aResource,
decoder->mResource = strdup(url.get());
if (plugin->CreateDecoder(&sPluginHost, decoder, chars, len)) {
aResource->AddRef();
return decoder.forget();
}
}