st/xorg: Check that ms->api->destroy is not NULL before calling it.
authorMichel Dänzer <daenzer@vmware.com>
Thu, 1 Oct 2009 14:45:11 +0000 (16:45 +0200)
committerMichel Dänzer <daenzer@vmware.com>
Thu, 1 Oct 2009 14:45:11 +0000 (16:45 +0200)
commite32a341be66391e0ea1cc6ce19bbd57997f46b6b
tree2fcf6429af6314422d220afff0786cbd8a871449
parent0b466c8705c9000c347760b5daafdf31c291736d
st/xorg: Check that ms->api->destroy is not NULL before calling it.

Fixes potential crash on X server shutdown.
src/gallium/state_trackers/xorg/xorg_driver.c