SpriteRenderer object leak


SpriteTextRenderer.SpriteRenderer class does NOT dispose "BlendState" member when "Dispose(bool disposing)" is called, causing an object leak when process ends.

SlimDX Debug Output while running available Sample:
Created Char Table 0 in 256 x 256
Object of type SlimDX.Direct3D11.BlendState was not disposed. Stack trace of object creation:
Total of 1 objects still alive.
Fixed by adding "BlendState.Dispose()" inside that method before "Fx.Dispose()". Pretty easy.

Thanks for the code! its awesome and works perfectly
Closed Sep 27, 2013 at 8:03 AM by Nico201


Nico201 wrote Sep 27, 2013 at 8:03 AM

Thanks for the tip.
The new release fixed this issue.