devkitPro / deko3d

Homebrew low level graphics API for Nintendo Switch (Nvidia Tegra X1)
zlib License
323 stars 23 forks source link

Reassignment to UniqueHandle type leaks handle #13

Closed HookedBehemoth closed 2 years ago

HookedBehemoth commented 2 years ago

https://github.com/devkitPro/deko3d/blob/master/include/deko3d.hpp#L83 lhs.m_handle gets overwritten with rhs.m_handle and destroy is never invoked.

fincs commented 2 years ago

Good catch!