diff options
author | Jakob Bornecrantz <[email protected]> | 2010-04-20 23:44:40 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2010-04-20 23:53:58 +0100 |
commit | 8a0c99b379db2c7b7d1590553237560023d9f1e2 (patch) | |
tree | a03dcfdfef5124c377e4fca042a7c0fe4c0a0867 /src/gallium | |
parent | 395cec966badced12c71cbf6470586f10474794a (diff) |
st/egl: Check for null destroy callback on api struct
Diffstat (limited to 'src/gallium')
-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 860657349bc..79645865f3b 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); } |