** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: imagefile.cpp,v 1.18 2000/12/16 02:31:00 kevin Exp $
+** $Id: imagefile.cpp,v 1.19 2000/12/16 02:44:26 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
int ny = m_ny;
ImageFileArray v = getArray();
- unsigned char rowp [nx * nxcell * (bitdepth / 8)];
+ unsigned char* rowp = new unsigned char [nx * nxcell * (bitdepth / 8)];
if ((fp = fopen (outfile, "wb")) == NULL)
return;
png_write_end(png_ptr, info_ptr);
png_destroy_write_struct(&png_ptr, &info_ptr);
+ delete rowp;\r
fclose(fp);
}