Sfoglia il codice sorgente

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

bunnei 4 anni fa
parent
commit
4a28d8cebb
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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();
 }