|
|
commit 40b82358ed3315b5ed6cdaae959e00348b165ad3
Author: Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Mon Aug 22 15:37:32 2022 +0200
Commit: Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Mon Aug 22 15:37:32 2022 +0200
Fix crash if a program exits before it opens a window (STR 3484).
This crash and the fix are Windows specific.
Backported from master (1.4.0), commit 339ba4c8b307 (Aug 6, 2018).
src/Fl_win32.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git src/Fl_win32.cxx src/Fl_win32.cxx
index 487515a..8be6796 100644
--- src/Fl_win32.cxx
+++ src/Fl_win32.cxx
@@ -513,7 +513,7 @@ public:
fl_free_fonts(); // do some WIN32 cleanup
fl_cleanup_pens();
OleUninitialize();
- fl_brush_action(1);
+ if (fl_gc) 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
[ Direct Link to Message ] | |
|
| |