mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1021932 - Free the buffer on failure in MediaBufferDecoder::AsyncDecodeMedia. r=padenot
This commit is contained in:
parent
965c67e0f3
commit
bee6f49645
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user