From 30b57935f9fdccee9e830cfded039dfa2a1602b3 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 25 May 2002 02:27:20 +0000 Subject: 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 --- src/Fl_Shared_Image.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 $". // -- cgit v1.2.3