summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Image.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Fl_Image.cxx b/src/Fl_Image.cxx
index bfb9a8eec..50922af92 100644
--- a/src/Fl_Image.cxx
+++ b/src/Fl_Image.cxx
@@ -130,8 +130,10 @@ Fl_RGB_Image::~Fl_RGB_Image() {
void Fl_RGB_Image::uncache() {
#ifdef __APPLE_QUARTZ__
- if (id)
+ if (id) {
CGImageRelease((CGImageRef)id);
+ id = 0;
+ }
#else
if (id) {
fl_delete_offscreen((Fl_Offscreen)id);