diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/intel_display.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel_display.c b/src/intel_display.c index 2a3a393c..60af4157 100644 --- a/src/intel_display.c +++ b/src/intel_display.c @@ -1770,6 +1770,9 @@ intel_mode_fini(intel_screen_private *intel) { struct intel_mode *mode = intel->modes; + if (mode == NULL) + return; + while(!list_is_empty(&mode->crtcs)) { xf86CrtcDestroy(list_first_entry(&mode->crtcs, struct intel_crtc, |