FLTK logo

[branch-1.3] 40b8235 - Fix crash if a program exits before it opens a window (STR 3484).

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[branch-1.3] 40b8235 - Fix crash if a program exits before it opens a window (STR 3484). "Albrecht Schlosser" Aug 22, 2022  
 
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 ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.