diff --git a/example/lottie2gif.cpp b/example/lottie2gif.cpp index ae9c58c2a3..38ad9e863e 100644 --- a/example/lottie2gif.cpp +++ b/example/lottie2gif.cpp @@ -72,7 +72,7 @@ public: auto player = rlottie::Animation::loadFromFile(fileName); if (!player) return help(); - auto buffer = std::make_unique(w * h); + auto buffer = std::unique_ptr(new uint32_t[w * h]); size_t frameCount = player->totalFrame(); GifBuilder builder(baseName.data(), w, h);