JibbSmart / JoyShockLibrary

Read DualSense, DualShock 4, JoyCon, and Pro Controller input on PC -- compiled for Windows, but code should work on other platforms.
Other
226 stars 42 forks source link

Fix memory leak disconnecting controllers. #22

Closed gnrlwart closed 3 years ago

gnrlwart commented 3 years ago

JoyShock::thread should probably just be a std::thread rather than a pointer to one, and use std::move on thread creation. Let me know if you'd like me to submit that change. For now though, this simply addresses the memory leak that happens for each disconnected JoyShock.

JibbSmart commented 3 years ago

Thanks for catching that!