diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-25 02:27:20 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-25 02:27:20 +0000 |
| commit | 30b57935f9fdccee9e830cfded039dfa2a1602b3 (patch) | |
| tree | 4145092f2f1d6cf42b02f3e5ec6c9d04eafeff9a | |
| parent | d1a1367fead1aeda3b6e97018baf3746ea817177 (diff) | |
Mark loaded images as allocated so that they get deleted.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2256 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | CHANGES | 1 | ||||
| -rw-r--r-- | src/Fl_Shared_Image.cxx | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,7 @@ CHANGES IN FLTK 1.1.0rc3 - Documentation updates. + - Fl_Shared_Image didn't delete images that were loaded. - Enabled the OpenGL and threads demos when compiling for MingW. - Fl_File_Input didn't update the directory buttons if a diff --git a/src/Fl_Shared_Image.cxx b/src/Fl_Shared_Image.cxx index 547296b52..db73a295c 100644 --- a/src/Fl_Shared_Image.cxx +++ b/src/Fl_Shared_Image.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Shared_Image.cxx,v 1.23.2.9 2002/04/11 11:52:41 easysw Exp $" +// "$Id: Fl_Shared_Image.cxx,v 1.23.2.10 2002/05/25 02:27:20 easysw Exp $" // // Shared image code for the Fast Light Tool Kit (FLTK). // @@ -102,7 +102,7 @@ Fl_Shared_Image::Fl_Shared_Image(const char *n, // I - Filename refcount_ = 1; image_ = img; - alloc_image_ = 0; + alloc_image_ = !img; original_ = 1; if (!img) reload(); @@ -455,5 +455,5 @@ Fl_Shared_Image::remove_handler(Fl_Shared_Handler *f) { // -// End of "$Id: Fl_Shared_Image.cxx,v 1.23.2.9 2002/04/11 11:52:41 easysw Exp $". +// End of "$Id: Fl_Shared_Image.cxx,v 1.23.2.10 2002/05/25 02:27:20 easysw Exp $". // |
