diff options
author | Feng Chen <vonchenplus@gmail.com> | 2021-10-26 06:43:27 +0200 |
---|---|---|
committer | Feng Chen <vonchenplus@gmail.com> | 2021-10-27 03:06:30 +0200 |
commit | 052017e189a2558dba1dd47147ab9274f218b7fc (patch) | |
tree | 0ae2a46af72d4b8b4244d8710f0202303c50bdad /src/core/hle | |
parent | Fix memory leak (diff) | |
download | yuzu-052017e189a2558dba1dd47147ab9274f218b7fc.tar yuzu-052017e189a2558dba1dd47147ab9274f218b7fc.tar.gz yuzu-052017e189a2558dba1dd47147ab9274f218b7fc.tar.bz2 yuzu-052017e189a2558dba1dd47147ab9274f218b7fc.tar.lz yuzu-052017e189a2558dba1dd47147ab9274f218b7fc.tar.xz yuzu-052017e189a2558dba1dd47147ab9274f218b7fc.tar.zst yuzu-052017e189a2558dba1dd47147ab9274f218b7fc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index d054a7925..db9f55864 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -174,8 +174,8 @@ struct KernelCore::Impl { { std::lock_guard lk(registered_in_use_objects_lock); if (registered_in_use_objects.size()) { - for (auto thread : registered_in_use_objects) { - thread->Close(); + for (auto& object : registered_in_use_objects) { + object->Close(); } registered_in_use_objects.clear(); } |