diff --git a/cpp_rework/frame/Frame.cpp b/cpp_rework/frame/Frame.cpp index 30cbffe8..b7eb5705 100644 --- a/cpp_rework/frame/Frame.cpp +++ b/cpp_rework/frame/Frame.cpp @@ -186,7 +186,7 @@ void Frame::write(const string &output) { } stbi_write_png(output.c_str(), width, height, bpp, stb_image, width * bpp); - + stbi_image_free(stb_image); } //////////////////////