mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Imported from libpng-1.2.35beta02.tar
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user