diff options
-rw-r--r-- | src/intel_driver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c index f338a369..65a50088 100644 --- a/src/intel_driver.c +++ b/src/intel_driver.c @@ -328,6 +328,9 @@ static int intel_init_bufmgr(intel_screen_private *intel) static void intel_bufmgr_fini(intel_screen_private *intel) { + if (intel->bufmgr == NULL) + return; + drm_intel_bo_unreference(intel->wa_scratch_bo); drm_intel_bufmgr_destroy(intel->bufmgr); } |