Return vkDestroyDevice from vkGetDeviceProcAddr

The vkDestroyDevice entrypoint was listed as a instance level
entrypoint, that is, to be returned by vkGetInstanceProcAddr; however,
vkDestroyDevice is a device level entrypoint. Consequently, the layer
implementation was not called by the loader upon application calls to
vkDestroyDevice and this caused memory leaks within the layer.

Change-Id: I9d5807ff17965281580cd80eb74b07fb038073b1
Signed-off-by: David Harvey-Macaulay <>
1 job for master in 1 minute and 10 seconds (queued for 4 seconds)
Status Name Job ID Coverage
passed build_vulkan_wsi_layer #13765837