memory leak in Visual Studio when work with wxWidgets
Env
poppler 20.11.0 wxwidgets 3.1.4 Visual Studio 2019 Windows 10 arch x64
Reproduce
#define WXUSINGDLL
#include <wx/log.h> // this leads to memory leak, if comment out this line, no memory leak
#include <poppler/cpp/poppler-page.h>
int main()
{
poppler::page * __page = nullptr;
if (__page != nullptr)
delete __page;
return 0;
}
Detected memory leaks!
Dumping objects ->
{75} normal block at 0x00000208EC86EE70, 62 bytes long.
Data: <D:\Test> 43 3A 5C 55 73 65 72 73 5C 61 6C 67 5C 44 65 76
Object dump complete.
The program '[0x1B34] TextWxWidgets.exe' has exited with code 0 (0x0).