diff --git a/src/d3d9/d3d9_cursor.h b/src/d3d9/d3d9_cursor.h index 6afe119c3de..79f2f2127bf 100644 --- a/src/d3d9/d3d9_cursor.h +++ b/src/d3d9/d3d9_cursor.h @@ -13,6 +13,13 @@ namespace dxvk { public: +#ifdef _WIN32 + ~D3D9Cursor() { + if (m_hCursor != nullptr) + ::DestroyCursor(m_hCursor); + } +#endif + void UpdateCursor(int X, int Y); BOOL ShowCursor(BOOL bShow);