$NetBSD: patch-ab,v 1.6 2010/06/20 15:58:06 wiz Exp $

Fixed in git version ffa6a2fa83452afe6a6ec67c4a3e8a5f1a6aaeef.

--- 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;
     }
