bug#924. Added test in clean up. pnunn.

This commit is contained in:
pnunn%netscape.com 2000-04-18 21:20:56 +00:00
parent 24c27fd863
commit d26b29c168

View File

@ -166,7 +166,8 @@ il_png_abort(il_container *ic)
ipng_p->rgbrow = NULL;
ipng_p->alpharow = NULL;
png_destroy_read_struct(&ipng_p->pngs_p, &ipng_p->info_p, NULL);
if((ipng_p->pngs_p)&&(ipng_p->info_p))
png_destroy_read_struct(&ipng_p->pngs_p, &ipng_p->info_p, NULL);
PR_FREEIF(ipng_p);
ic->ds = NULL;
}