diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-02-20 11:35:46 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-02-20 11:54:18 +0000 |
commit | a5c2570dc5a94dae8e50e0f8cd714b928aed695c (patch) | |
tree | 247877df0332dc76b0e8af8d35c4d43b516d7ca6 /src | |
parent | ee4e4a6b964a3a91fcb922d4e82abff62da39102 (diff) |
wgl: Prevent null pointer reference.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/wgl/shared/stw_context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/wgl/shared/stw_context.c b/src/gallium/state_trackers/wgl/shared/stw_context.c index 0b996d788f..1377fb1ec8 100644 --- a/src/gallium/state_trackers/wgl/shared/stw_context.c +++ b/src/gallium/state_trackers/wgl/shared/stw_context.c @@ -178,6 +178,9 @@ stw_delete_context( struct stw_context *ctx ; BOOL ret = FALSE; + if (!stw_dev) + return FALSE; + pipe_mutex_lock( stw_dev->mutex ); ctx = stw_lookup_context(hglrc); |