summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-05-25 02:27:20 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-05-25 02:27:20 +0000
commit30b57935f9fdccee9e830cfded039dfa2a1602b3 (patch)
tree4145092f2f1d6cf42b02f3e5ec6c9d04eafeff9a /src
parentd1a1367fead1aeda3b6e97018baf3746ea817177 (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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Shared_Image.cxx6
1 files changed, 3 insertions, 3 deletions
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 $".
//