From 1907ad94739c13049bbb95c7fa4637bbc91a3967 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 11 Oct 2002 02:30:20 +0000 Subject: Set flag so that destructor will free memory used by PNM images. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2668 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_PNM_Image.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Fl_PNM_Image.cxx b/src/Fl_PNM_Image.cxx index 5742357fe..4304a657a 100644 --- a/src/Fl_PNM_Image.cxx +++ b/src/Fl_PNM_Image.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_PNM_Image.cxx,v 1.1.2.9 2002/09/17 20:27:18 easysw Exp $" +// "$Id: Fl_PNM_Image.cxx,v 1.1.2.10 2002/10/11 02:30:20 easysw Exp $" // // Fl_PNM_Image routines. // @@ -119,7 +119,8 @@ Fl_PNM_Image::Fl_PNM_Image(const char *name) // I - File to read // printf("%s = %dx%dx%d\n", name, w(), h(), d()); - array = new uchar[w() * h() * d()]; + array = new uchar[w() * h() * d()]; + alloc_array = 1; // Read the image file... for (y = 0; y < h(); y ++) { @@ -175,5 +176,5 @@ Fl_PNM_Image::Fl_PNM_Image(const char *name) // I - File to read // -// End of "$Id: Fl_PNM_Image.cxx,v 1.1.2.9 2002/09/17 20:27:18 easysw Exp $". +// End of "$Id: Fl_PNM_Image.cxx,v 1.1.2.10 2002/10/11 02:30:20 easysw Exp $". // -- cgit v1.2.3