summaryrefslogtreecommitdiff
path: root/src/Fl_PNM_Image.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-10-11 02:30:20 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-10-11 02:30:20 +0000
commit1907ad94739c13049bbb95c7fa4637bbc91a3967 (patch)
tree74b361eb75b3918902aa297c538ebcd90ad2b4c7 /src/Fl_PNM_Image.cxx
parent5d4b4d571b712b184677eb8dc906007de9fe53c4 (diff)
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
Diffstat (limited to 'src/Fl_PNM_Image.cxx')
-rw-r--r--src/Fl_PNM_Image.cxx7
1 files changed, 4 insertions, 3 deletions
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 $".
//