diff options
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | src/Fl_win32.cxx | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -137,6 +137,8 @@ Changes in FLTK 1.4.0 Released: ??? ?? 2017 Bug Fixes - (add new items here) + - Fix a potential crash when a program exits before it opens a window + (Windows only, STR #3484). - Fix Fl_PNG_Image error handling. An error was potentially caused by error handling of the image library with setjmp/longjmp. - Fix Fl_Browser background and text color parsing (STR #3376). diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index c2549a144..d06c5c4f8 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -584,7 +584,7 @@ public: fl_free_fonts(); // do some Windows cleanup fl_cleanup_pens(); OleUninitialize(); - fl_brush_action(1); + if (fl_graphics_driver) fl_brush_action(1); fl_cleanup_dc_list(); // This is actually too late in the cleanup process to remove the // clipboard notifications, but we have no earlier hook so we try |
