NVIDIAGameWorks / Streamline

Streamline Integration Framework
Other
377 stars 79 forks source link

getSystemCaps() in sl.common leaks D3DKMT adapter handles #28

Closed Nukem9 closed 3 months ago

Nukem9 commented 8 months ago

Streamline calls D3DKMTEnumAdapters2 and doesn't close its output handles.

According to MSDN docs:

Once the caller of D3DKMTEnumAdapters2 has successfully received an enumeration of the adapters, it is the caller's responsibility to manage the lifespan of the adapter D3DKMT_HANDLEs. These handles are returned through pAdapters, and they must be closed with D3DKMTCloseAdapter.

It's relatively benign. Still a bug nonetheless.

jake-nv commented 6 months ago

Thanks for report!

Fix missed upcoming release, but will be in one after.