diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-25 02:56:59 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-25 02:56:59 +0000 |
| commit | f79c2375da765077fd6cbd9fbaf9fe20bcbf5a55 (patch) | |
| tree | 8993637e99c915f3a7f153a998b341e62d753b5c /src/Fl_JPEG_Image.cxx | |
| parent | 30b57935f9fdccee9e830cfded039dfa2a1602b3 (diff) | |
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
Diffstat (limited to 'src/Fl_JPEG_Image.cxx')
| -rw-r--r-- | src/Fl_JPEG_Image.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_JPEG_Image.cxx b/src/Fl_JPEG_Image.cxx index 34bbc8878..183c41eba 100644 --- a/src/Fl_JPEG_Image.cxx +++ b/src/Fl_JPEG_Image.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_JPEG_Image.cxx,v 1.1.2.4 2002/01/15 01:33:16 easysw Exp $" +// "$Id: Fl_JPEG_Image.cxx,v 1.1.2.5 2002/05/25 02:56:59 easysw Exp $" // // Fl_JPEG_Image routines. // @@ -76,6 +76,7 @@ Fl_JPEG_Image::Fl_JPEG_Image(const char *jpeg) // I - File to load d(cinfo.output_components); array = new uchar[w() * h() * d()]; + alloc_array = 1; jpeg_start_decompress(&cinfo); @@ -95,5 +96,5 @@ Fl_JPEG_Image::Fl_JPEG_Image(const char *jpeg) // I - File to load } // -// End of "$Id: Fl_JPEG_Image.cxx,v 1.1.2.4 2002/01/15 01:33:16 easysw Exp $". +// End of "$Id: Fl_JPEG_Image.cxx,v 1.1.2.5 2002/05/25 02:56:59 easysw Exp $". // |
