From aa414049a0be80ae05ff7b17e99b57e66e7c28c6 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Fri, 7 Apr 2006 17:24:25 +0000 Subject: [PATCH] fix allocation of array of PNG image lines svn: r2639 --- src/wxcommon/wxJPEG.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wxcommon/wxJPEG.cxx b/src/wxcommon/wxJPEG.cxx index 380a2a2dae..5527838994 100644 --- a/src/wxcommon/wxJPEG.cxx +++ b/src/wxcommon/wxJPEG.cxx @@ -818,7 +818,7 @@ int wx_read_png(char *file_name, wxBitmap *bm, int w_mask, wxColour *bg) #ifdef MZ_PRECISE_GC rows = (png_bytep *)GC_malloc(sizeof(png_bytep) * height); #else - rows = new WXGC_ATOMIC png_bytep[height]; + rows = new WXGC_PTRS png_bytep[height]; #endif row_width = png_get_rowbytes(png_ptr, info_ptr); @@ -1009,7 +1009,7 @@ int wx_write_png(char *file_name, wxBitmap *bm) #ifdef MZ_PRECISE_GC rows = (png_bytep *)GC_malloc(sizeof(png_bytep) * height); #else - rows = new WXGC_ATOMIC png_bytep[height]; + rows = new WXGC_PTRS png_bytep[height]; #endif row_width = png_get_rowbytes(png_ptr, info_ptr); for (y = 0; y < height; y++) {