Skip to content

Commit

Permalink
fixed pretty severe memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
akai-katto committed Jun 21, 2021
1 parent f365cf0 commit 491ccfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp_rework/frame/Frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

//////////////////////
Expand Down

0 comments on commit 491ccfe

Please sign in to comment.