fix memleak
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 18 Oct 2008 15:20:37 +0000 (15:20 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 18 Oct 2008 15:20:37 +0000 (15:20 +0000)
lib/gdi/epng.cpp

index d0da603..972a89d 100644 (file)
@@ -300,7 +300,7 @@ int savePNG(const char *filename, gPixmap *pixmap)
                else
                        png_write_row(png_ptr, row_pointer);
        }
-       delete cr;
+       delete [] cr;
 
        png_write_end(png_ptr, info_ptr);
        png_destroy_write_struct(&png_ptr, &info_ptr);