mirror of https://github.com/fltk/fltk
Close small memory leak in Fl_File_Chooser: a bad image file creates an Fl_Shared_Image but never releases it.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12075 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
fdbf426782
commit
5c2a7d9fed
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue