i965/sync: Don't crash when deleting sync object
authorChad Versace <chad.versace@intel.com>
Wed, 6 May 2015 02:05:28 +0000 (19:05 -0700)
committerChad Versace <chad.versace@intel.com>
Thu, 7 May 2015 15:11:21 +0000 (08:11 -0700)
commita93ab73a074e0c25ff5ceca7fc1141a9bea82c8f
treee129626996e5d8fddc5587a2301a01b60e036145
parenta6bfdd7b46170bd8105303063717c45f7e6fafee
i965/sync: Don't crash when deleting sync object

Don't pass NULL to drm_intel_bo_unreference(). It doesn't like that.

Bug found by code inspection.

Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_syncobj.c