$NetBSD: patch-ab,v 1.5 2010/06/13 22:45:07 wiz Exp $ --- modules/codec/png.c.orig 2010-03-07 18:38:01.000000000 +0000 +++ modules/codec/png.c @@ -155,7 +155,7 @@ static picture_t *DecodeBlock( decoder_t p_info = png_create_info_struct( p_png ); if( p_info == NULL ) { - png_destroy_read_struct( &p_png, png_infopp_NULL, png_infopp_NULL ); + png_destroy_read_struct( &p_png, NULL, NULL ); block_Release( p_block ); *pp_block = NULL; return NULL; } @@ -163,7 +163,7 @@ static picture_t *DecodeBlock( decoder_t p_end_info = png_create_info_struct( p_png ); if( p_end_info == NULL ) { - png_destroy_read_struct( &p_png, &p_info, png_infopp_NULL ); + png_destroy_read_struct( &p_png, &p_info, NULL ); block_Release( p_block ); *pp_block = NULL; return NULL; }