sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.69k stars 638 forks source link

DirectInput.DataObjectFormat.__Native is not disposed #894

Open ry1031 opened 7 years ago

ry1031 commented 7 years ago

From VS Performance Explorer, DirectInput.DataObjectFormat.__Native is still alive after dispose method. Please correct me if I am wrong. if (joystick != null) { joystick.Dispose(); } if (directInput != null) { directInput.Dispose(); }

Version: 2.6.3.0

xoofx commented 7 years ago

Looking at the code, it seems this part is actually badly handled. PR welcome.