diff options
| -rw-r--r-- | src/Fl_File_Chooser2.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index 3f3ceb05d..71c51f8ac 100644 --- a/src/Fl_File_Chooser2.cxx +++ b/src/Fl_File_Chooser2.cxx @@ -1364,6 +1364,7 @@ Fl_File_Chooser::update_preview() (image->h() <= 0) || (image->d() < 0) || (image->count() <= 0))) { + image->release(); // Image has errors? Show big 'X' previewBox->label("X"); previewBox->align(FL_ALIGN_CLIP); |
