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
This commit is contained in:
Michael R Sweet 2002-05-25 02:27:20 +00:00
parent d1a1367fea
commit 30b57935f9
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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 $".
//