Revert "Test: prevent unnecessary memory allocation"
Revert "Test: prevent unnecessary memory allocation"

This reverts commit 5c109c32d3c71c04c8673f97097a467a18b92943.

Crashes on macOS and Windows. Not worth exploring further.

nu-book/zxing-cpp,nu-book/zxing-cpp,nu-book/zxing-cpp,huycn/zxing-cpp,nu-book/zxing-cpp,nu-book/zxing-cpp,huycn/zxing-cpp,huycn/zxing-cpp,nu-book/zxing-cpp,nu-book/zxing-cpp,huycn/zxing-cpp,nu-book/zxing-cpp,huycn/zxing-cpp,huycn/zxing-cpp,huycn/zxing-cpp,huycn/zxing-cpp