зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1021932 - Free the buffer on failure in MediaBufferDecoder::AsyncDecodeMedia. r=padenot
This commit is contained in:
Родитель
514fc57d28
Коммит
ffae133772
|
@ -450,6 +450,7 @@ MediaBufferDecoder::AsyncDecodeMedia(const char* aContentType, uint8_t* aBuffer,
|
|||
new ReportResultTask(aDecodeJob,
|
||||
&WebAudioDecodeJob::OnFailure,
|
||||
WebAudioDecodeJob::UnknownContent);
|
||||
JS_free(nullptr, aBuffer);
|
||||
NS_DispatchToMainThread(event);
|
||||
return;
|
||||
}
|
||||
|
@ -459,6 +460,7 @@ MediaBufferDecoder::AsyncDecodeMedia(const char* aContentType, uint8_t* aBuffer,
|
|||
new ReportResultTask(aDecodeJob,
|
||||
&WebAudioDecodeJob::OnFailure,
|
||||
WebAudioDecodeJob::UnknownError);
|
||||
JS_free(nullptr, aBuffer);
|
||||
NS_DispatchToMainThread(event);
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче