diff options
author | marha <marha@users.sourceforge.net> | 2011-11-08 12:33:11 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-11-08 12:33:11 +0100 |
commit | a3d796bcc7de83fd88b42e09c6a82a8df4f9b836 (patch) | |
tree | cba03a8499a0ea71fac0e59ae1f91748baf0479f /xorg-server/hw/xwin/winshadgdi.c | |
parent | c4f95f53617d5efd78de5b8b6a13fe937fb5478f (diff) | |
download | vcxsrv-a3d796bcc7de83fd88b42e09c6a82a8df4f9b836.tar.gz vcxsrv-a3d796bcc7de83fd88b42e09c6a82a8df4f9b836.tar.bz2 vcxsrv-a3d796bcc7de83fd88b42e09c6a82a8df4f9b836.zip |
Solved possible crashes due to null pointer access
Diffstat (limited to 'xorg-server/hw/xwin/winshadgdi.c')
-rw-r--r-- | xorg-server/hw/xwin/winshadgdi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/hw/xwin/winshadgdi.c b/xorg-server/hw/xwin/winshadgdi.c index 718101299..545d1f0e0 100644 --- a/xorg-server/hw/xwin/winshadgdi.c +++ b/xorg-server/hw/xwin/winshadgdi.c @@ -656,7 +656,7 @@ winCloseScreenShadowGDI (int nIndex, ScreenPtr pScreen) #if defined(XWIN_CLIPBOARD) || defined(XWIN_MULTIWINDOW) /* Destroy the thread startup mutex */ - pthread_mutex_destroy (&pScreenPriv->pmServerStarted); + if (pScreenPriv->pmServerStarted) pthread_mutex_destroy (&pScreenPriv->pmServerStarted); #endif /* Invalidate our screeninfo's pointer to the screen */ |