Commit e3d4a82b authored by Georgy Schukin's avatar Georgy Schukin
Browse files

Add destroy_bmp to BMP file creation func

parent 0b405b59
......@@ -305,6 +305,7 @@ void writeBMP(const std::string &filename, const std::vector<Color> &image, int
bmp_set_pixel(bmp, x, imageSizeZ - z - 1, pixel);
}
bmp_save(bmp, filename.c_str());
bmp_destroy(bmp);
}
void writeJPEG(const std::string &filename, const std::vector<Color> &image, int imageSizeX, int imageSizeZ, int quality = 90) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment