ReswPlus icon indicating copy to clipboard operation
ReswPlus copied to clipboard

Fixed memory leak in C++ string formatting

Open jaigak opened this issue 3 years ago • 1 comments

Fixes #28.

jaigak avatar Sep 24 '22 16:09 jaigak

These could still leak in case the creation of the string throws. Recommend using std::unique_ptr<wchar_t[]>. Alternatively for C++/WinRT, you could use winrt::format to be more efficient (since it directly gives a hstring)

sylveon avatar Jan 31 '23 01:01 sylveon