diff options
| author | 2021-10-25 18:55:20 +0800 | |
|---|---|---|
| committer | 2021-10-27 09:06:22 +0800 | |
| commit | a8b01049235bffa13d18a010311c16c8b9c316b4 (patch) | |
| tree | 3e8f433c3da629b09a4b3e000047ceb6f8ac3ec0 /src/core/hle/kernel/kernel.h | |
| parent | Merge pull request #7218 from bylaws/aswdqdsam (diff) | |
| download | yuzu-a8b01049235bffa13d18a010311c16c8b9c316b4.tar.gz yuzu-a8b01049235bffa13d18a010311c16c8b9c316b4.tar.xz yuzu-a8b01049235bffa13d18a010311c16c8b9c316b4.zip | |
Fix memory leak
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 | ||