Skip to content

Commit 491ccfe

Browse files
committed
fixed pretty severe memory leak
1 parent f365cf0 commit 491ccfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp_rework/frame/Frame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void Frame::write(const string &output) {
186186
}
187187

188188
stbi_write_png(output.c_str(), width, height, bpp, stb_image, width * bpp);
189-
189+
stbi_image_free(stb_image);
190190
}
191191

192192
//////////////////////

0 commit comments

Comments
 (0)