justinstenning / Direct3DHook

DirectX Capture and Overlays by using Direct3D API hooks
http://spazzarama.com/2011/03/14/c-screen-capture-and-overlays-for-direct3d-9-10-and-11-using-api-hooks
MIT License
582 stars 176 forks source link

Memory leak on image draw #79

Closed Sardelka9515 closed 1 year ago

Sardelka9515 commented 1 year ago

The Texture2D created in this line is not being disposed after use, causing potential memory leak.

justinstenning commented 1 year ago

That is a pointer to the reference created here which is disposed when the DXImage is disposed:

justinstenning commented 1 year ago

The overlay was not being disposed, fixed in https://github.com/justinstenning/Direct3DHook/commit/601bc6d778b4a2c84a78633666b7785da9e605ec