Imported from libpng-1.2.35beta02.tar

This commit is contained in:
Glenn Randers-Pehrson
2009-02-04 14:38:51 -06:00
parent d0a4300dde
commit c6df7e5899
48 changed files with 119 additions and 167 deletions

View File

@@ -4133,6 +4133,9 @@ png_build_gamma_table(png_structp png_ptr)
double fin, fout;
png_uint_32 last, max;
for (i = 0; i < num; i++)
png_ptr->gamma_16_table[i] = NULL;
for (i = 0; i < num; i++)
{
png_ptr->gamma_16_table[i] = (png_uint_16p)png_malloc(png_ptr,
@@ -4188,6 +4191,9 @@ png_build_gamma_table(png_structp png_ptr)
png_ptr->gamma_16_to_1 = (png_uint_16pp)png_malloc(png_ptr,
(png_uint_32)(num * png_sizeof(png_uint_16p )));
for (i = 0; i < num; i++)
png_ptr->gamma_16_to_1[i] = NULL;
for (i = 0; i < num; i++)
{
png_ptr->gamma_16_to_1[i] = (png_uint_16p)png_malloc(png_ptr,