Explorar o código

core: hle: kernel: k_thread: Ensure host Fiber is freed.

bunnei %!s(int64=4) %!d(string=hai) anos
pai
achega
4a28d8cebb
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/core/hle/kernel/k_thread.cpp

+ 3 - 0
src/core/hle/kernel/k_thread.cpp

@@ -326,6 +326,9 @@ void KThread::Finalize() {
         }
     }
 
+    // Release host emulation members.
+    host_context.reset();
+
     // Perform inherited finalization.
     KSynchronizationObject::Finalize();
 }