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 40914aeb1cc60c07a335b0475686cf807046eafe..30ab0b2e739a4d09e4c6f18f87635aa0a2fe90cf 100644 (file)
@@ -783,6 +783,8 @@ void anv_DestroyDevice(
 
    close(device->fd);
 
+   pthread_mutex_destroy(&device->mutex);
+
    anv_free(&device->alloc, device);
 }