Commit 9ea06913 authored by Reinhard Tartler's avatar Reinhard Tartler

Imported nxcompext-3.3.0-4.tar.gz

Summary: Imported nxcompext-3.3.0-4.tar.gz Keywords: Imported nxcompext-3.3.0-4.tar.gz into Git repository
parent f2f6dab8
ChangeLog:
nxcompext-3.3.0-4
- Fixed TR03G02199. The color palette allocated for encoding an image
having 256 colors or less was not freed.
nxcompext-3.3.0-3
- Now setting the correct event serial number when sending collect
......
......@@ -548,13 +548,14 @@ char *PngCompressData(XImage *image, int *compressed_size)
}
png_write_end(png_ptr, NULL);
png_destroy_write_struct(&png_ptr, &info_ptr);
if (color_type == PNG_COLOR_TYPE_PALETTE)
{
png_free(png_ptr, palette);
}
png_destroy_write_struct(&png_ptr, &info_ptr);
/*
* Check the size of the resulting data.
*/
......
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