mirror of
https://github.com/citra-mirror/citra.git
synced 2024-08-19 10:03:22 +02:00
audio_core: hle: mf: fix a memory accessing issue
This commit is contained in:
parent
6281660844
commit
01e0902fa4
@ -98,6 +98,9 @@ std::optional<BinaryResponse> WMFDecoder::Impl::Initalize(const BinaryRequest& r
|
|||||||
void WMFDecoder::Impl::Clear() {
|
void WMFDecoder::Impl::Clear() {
|
||||||
if (initialized) {
|
if (initialized) {
|
||||||
MFFlush(transform.get());
|
MFFlush(transform.get());
|
||||||
|
// delete the transform object before shutting down MF
|
||||||
|
// otherwise access violation will occur
|
||||||
|
transform.reset();
|
||||||
MFDestroy();
|
MFDestroy();
|
||||||
}
|
}
|
||||||
initialized = false;
|
initialized = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user