]> git.imager.perl.org - imager.git/commitdiff
eliminate another unused impng.c variable
authorTony Cook <tony@develop-help.com>
Tue, 14 Aug 2012 09:30:33 +0000 (19:30 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 14 Aug 2012 09:30:33 +0000 (19:30 +1000)
PNG/impng.c

index 97594aa25fabdd09954766d38c2fc344e8a641fe..477a49199ae6400de42823b4907e66545eeb8fbe 100644 (file)
@@ -98,7 +98,6 @@ i_writepng_wiol(i_img *im, io_glue *ig) {
   png_infop info_ptr = NULL;
   i_img_dim width,height;
   volatile int cspace,channels;
-  unsigned char * volatile vdata = NULL;
   int bits;
   int is_bilevel = 0, zero_is_white;
 
@@ -197,8 +196,6 @@ i_writepng_wiol(i_img *im, io_glue *ig) {
    */
   if (setjmp(png_jmpbuf(png_ptr))) {
     png_destroy_write_struct(&png_ptr, &info_ptr);
-    if (vdata)
-      myfree(vdata);
     return(0);
   }