diff options
| author | 2021-11-01 20:11:30 -0700 | |
|---|---|---|
| committer | 2021-11-01 20:11:30 -0700 | |
| commit | b118fa8698dbe0e2b6e663c1c37a7eac03422905 (patch) | |
| tree | 14864116c00d385abba61ad2330c1c0f50e4b961 /src/core/hle/kernel/kernel.h | |
| parent | Merge pull request #7264 from zhaobot/tx-update-20211101021628 (diff) | |
| parent | Fix dangling kernel objects when exiting (diff) | |
| download | yuzu-b118fa8698dbe0e2b6e663c1c37a7eac03422905.tar.gz yuzu-b118fa8698dbe0e2b6e663c1c37a7eac03422905.tar.xz yuzu-b118fa8698dbe0e2b6e663c1c37a7eac03422905.zip | |
Merge pull request #7227 from vonchenplus/fix_memory_leak_v2
Fix memory leak v2
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index b6658b437..d2ceae950 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -204,6 +204,14 @@ public: | |||
| 204 | /// destroyed during the current emulation session. | 204 | /// destroyed during the current emulation session. |
| 205 | void UnregisterKernelObject(KAutoObject* object); | 205 | void UnregisterKernelObject(KAutoObject* object); |
| 206 | 206 | ||
| 207 | /// Registers kernel objects with guest in use state, this is purely for close | ||
| 208 | /// after emulation has been shutdown. | ||
| 209 | void RegisterInUseObject(KAutoObject* object); | ||
| 210 | |||
| 211 | /// Unregisters a kernel object previously registered with RegisterInUseObject when it was | ||
| 212 | /// destroyed during the current emulation session. | ||
| 213 | void UnregisterInUseObject(KAutoObject* object); | ||
| 214 | |||
| 207 | /// Determines whether or not the given port is a valid named port. | 215 | /// Determines whether or not the given port is a valid named port. |
| 208 | bool IsValidNamedPort(NamedPortTable::const_iterator port) const; | 216 | bool IsValidNamedPort(NamedPortTable::const_iterator port) const; |
| 209 | 217 | ||