diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-29 10:40:51 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-29 10:40:51 +0100 |
commit | 16860d448f11ba405050bd1ff02dc63a4b26280c (patch) | |
tree | 8614c8152158c6d96189644646bc6bb3e0d062e5 | |
parent | 13f7a9e267fbefd3326569e89b840bef31d77996 (diff) |
uxa: Only destroy the bufmgr if it exists
Be wary in case the Screen is destroy before we initialise bufmgr.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-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); } |