From b7ad2d99e0744b0330cf0205cc717e5fca57078d Mon Sep 17 00:00:00 2001 From: Cjacker Date: Wed, 25 Oct 2017 15:29:29 +0800 Subject: [PATCH] Also need to check addr --- source/detail/platform_spec_posix.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/detail/platform_spec_posix.cpp b/source/detail/platform_spec_posix.cpp index 906aaf93..7f825395 100644 --- a/source/detail/platform_spec_posix.cpp +++ b/source/detail/platform_spec_posix.cpp @@ -836,9 +836,9 @@ namespace detail i->second->pos = pos; } auto addr = i->second; - XPoint spot; - XVaNestedList list; - if(addr->input_context) { + if(addr && addr->input_context) { + XPoint spot; + XVaNestedList list; spot.x = pos.x; spot.y = pos.y + addr->size.height; list = ::XVaCreateNestedList(0, XNSpotLocation, &spot,