From f79c2375da765077fd6cbd9fbaf9fe20bcbf5a55 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 25 May 2002 02:56:59 +0000 Subject: Tag image data as allocated so that we don't waste memory. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_BMP_Image.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Fl_BMP_Image.cxx') diff --git a/src/Fl_BMP_Image.cxx b/src/Fl_BMP_Image.cxx index 4a911e56c..dbc6841f0 100644 --- a/src/Fl_BMP_Image.cxx +++ b/src/Fl_BMP_Image.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_BMP_Image.cxx,v 1.1.2.3 2002/05/24 14:19:19 easysw Exp $" +// "$Id: Fl_BMP_Image.cxx,v 1.1.2.4 2002/05/25 02:56:59 easysw Exp $" // // Fl_BMP_Image routines. // @@ -140,6 +140,7 @@ Fl_BMP_Image::Fl_BMP_Image(const char *bmp) // I - File to read fseek(fp, offbits, SEEK_SET); array = new uchar[w() * h() * d()]; + alloc_array = 1; // Read the image data... color = 0; @@ -370,5 +371,5 @@ read_long(FILE *fp) { // I - File to read from // -// End of "$Id: Fl_BMP_Image.cxx,v 1.1.2.3 2002/05/24 14:19:19 easysw Exp $". +// End of "$Id: Fl_BMP_Image.cxx,v 1.1.2.4 2002/05/25 02:56:59 easysw Exp $". // -- cgit v1.2.3