diff options
author | marha <marha@users.sourceforge.net> | 2011-10-28 16:04:58 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-10-28 16:04:58 +0200 |
commit | 125500b44d0253d7fd7a59905ab730151d4f66e2 (patch) | |
tree | 2a13d2b6d40db1cda9b9f08e36e0f62d25536cdf /xorg-server/hw/xwin | |
parent | d2a31932bb4eaa04572dcf646a2967c638a47144 (diff) | |
download | vcxsrv-125500b44d0253d7fd7a59905ab730151d4f66e2.tar.gz vcxsrv-125500b44d0253d7fd7a59905ab730151d4f66e2.tar.bz2 vcxsrv-125500b44d0253d7fd7a59905ab730151d4f66e2.zip |
Solved crash due to NULL pointer
Diffstat (limited to 'xorg-server/hw/xwin')
-rw-r--r-- | xorg-server/hw/xwin/glx/indirect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/hw/xwin/glx/indirect.c b/xorg-server/hw/xwin/glx/indirect.c index 7dc5f31b7..f9d623cb2 100644 --- a/xorg-server/hw/xwin/glx/indirect.c +++ b/xorg-server/hw/xwin/glx/indirect.c @@ -1681,7 +1681,7 @@ glxWinContextLoseCurrent(__GLXcontext *base) #endif /* Clear the last active context in the drawable */ - drawPriv->drawContext = NULL; + if (drawPriv) drawPriv->drawContext = NULL; if (wglGetCurrentContext()==gc->ctx) { |