diff options
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | src/Fl_PNM_Image.cxx | 7 |
2 files changed, 6 insertions, 3 deletions
@@ -1,5 +1,7 @@ CHANGES IN FLTK 1.1.1 + - Fl_PNM_Image didn't set the "alloc" flag for the data, + which could lead to a memory leak. - fl_filename_match() was inconsistently doing case- insensitive matching. - Fl_Button redraw fix for bug #620979 (focus boxes and 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 $". // |
