diff options
author | Jakob Bornecrantz <wallbraker@gmail.com> | 2010-04-20 23:44:40 +0100 |
---|---|---|
committer | Jakob Bornecrantz <wallbraker@gmail.com> | 2010-04-20 23:53:58 +0100 |
commit | 8a0c99b379db2c7b7d1590553237560023d9f1e2 (patch) | |
tree | a03dcfdfef5124c377e4fca042a7c0fe4c0a0867 /src/gallium/state_trackers | |
parent | 395cec966badced12c71cbf6470586f10474794a (diff) | |
download | external_mesa3d-8a0c99b379db2c7b7d1590553237560023d9f1e2.zip external_mesa3d-8a0c99b379db2c7b7d1590553237560023d9f1e2.tar.gz external_mesa3d-8a0c99b379db2c7b7d1590553237560023d9f1e2.tar.bz2 |
st/egl: Check for null destroy callback on api struct
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/egl/kms/native_kms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/egl/kms/native_kms.c b/src/gallium/state_trackers/egl/kms/native_kms.c index 8606573..7964586 100644 --- a/src/gallium/state_trackers/egl/kms/native_kms.c +++ b/src/gallium/state_trackers/egl/kms/native_kms.c @@ -680,7 +680,7 @@ kms_display_destroy(struct native_display *ndpy) if (kdpy->fd >= 0) drmClose(kdpy->fd); - if (kdpy->api) + if (kdpy->api && kdpy->api->destroy) kdpy->api->destroy(kdpy->api); FREE(kdpy); } |