summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-05-27 12:30:45 -0600
committerBrian Paul <[email protected]>2010-05-27 13:40:16 -0600
commit0faefb194e58ebd6a58c9ce2d00be286b8746613 (patch)
tree62d1b6275567bb1b9f6cfbbd21ed16f3a74bab6b /src/gallium/winsys
parentc3b62bc86cf99a7ef57c36e8905b5234cfdd557b (diff)
sw/xlib: avoid dereferencing a null pointer
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/sw/xlib/xlib_sw_winsys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c b/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
index 3d702ae08dc..b78f537c125 100644
--- a/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
+++ b/src/gallium/winsys/sw/xlib/xlib_sw_winsys.c
@@ -255,7 +255,7 @@ xm_displaytarget_destroy(struct sw_winsys *ws,
}
else {
FREE(xm_dt->data);
- if (xm_dt->tempImage->data == xm_dt->data) {
+ if (xm_dt->tempImage && xm_dt->tempImage->data == xm_dt->data) {
xm_dt->tempImage->data = NULL;
}
xm_dt->data = NULL;