|
|
commit e02ee7d5f11b31024e1fe91cf980a90641b1a2c4
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Thu May 5 10:21:50 2022 +0200
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Thu May 5 10:21:50 2022 +0200
Add check against null pointer occurrence reported with Gmsh (Issue #434).
src/Fl_cocoa.mm | 1 +
1 file changed, 1 insertion(+)
diff --git src/Fl_cocoa.mm src/Fl_cocoa.mm
index 33e78fe..1fe7f68 100644
--- src/Fl_cocoa.mm
+++ src/Fl_cocoa.mm
@@ -2284,6 +2284,7 @@ static FLTextInputContext* fltextinputcontext_instance = nil;
FLWindow *cw = (FLWindow*)[self window];
Fl_Window *window = [cw getFl_Window];
if (!window) return; // may happen after closing full-screen window
+ if (!Fl_X::i(window)) return; // reported to happen with Gmsh (issue #434)
fl_lock_function();
Fl_Cocoa_Window_Driver *d = Fl_Cocoa_Window_Driver::driver(window);
if (!through_Fl_X_flush
[ Direct Link to Message ] | |
|
| |