From 841e0c11d82fe784b9153d0cb6fff3063969ca41 Mon Sep 17 00:00:00 2001 From: Andrei Prykhodko Date: Sun, 29 Jul 2018 21:13:09 +0300 Subject: GRAPHICS: MACGUI: fixed SIGSEGV when ptr to menu in MacTextWindow is NULL --- graphics/macgui/mactextwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics') diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp index b43948af3b..553592382d 100644 --- a/graphics/macgui/mactextwindow.cpp +++ b/graphics/macgui/mactextwindow.cpp @@ -356,7 +356,7 @@ bool MacTextWindow::processEvent(Common::Event &event) { startMarking(event.mouse.x, event.mouse.y); return true; - } else if (event.type == Common::EVENT_LBUTTONUP) { + } else if (event.type == Common::EVENT_LBUTTONUP && _menu) { if (_inTextSelection) { _inTextSelection = false; -- cgit v1.2.3