1
0
forked from 0ad/0ad

Avoid crashing when something minor that should never fail fails (though the cause of that failure is fairly major (but currently unknown))

This was SVN commit r1174.
This commit is contained in:
Ykkrosh 2004-09-20 18:27:22 +00:00
parent c359288373
commit 7925a3fc4d

View File

@ -839,7 +839,8 @@ fail:
ret:
free(rows);
png_destroy_read_struct(&png_ptr, &info_ptr, 0);
if(png_ptr)
png_destroy_read_struct(&png_ptr, &info_ptr, 0);
return err;
}