resolve error on MSVC & leak