vk: Destroy device->mutex when destroying the device
authorKristian Høgsberg Kristensen <krh@owl.jf.intel.com>
Tue, 5 Jan 2016 19:43:25 +0000 (11:43 -0800)
committerKristian Høgsberg Kristensen <krh@owl.jf.intel.com>
Tue, 5 Jan 2016 20:03:21 +0000 (12:03 -0800)
src/vulkan/anv_device.c

index 40914ae..30ab0b2 100644 (file)
@@ -783,6 +783,8 @@ void anv_DestroyDevice(
 
    close(device->fd);
 
+   pthread_mutex_destroy(&device->mutex);
+
    anv_free(&device->alloc, device);
 }