layers: Fix 'Debug Report callbacks not removed' error messages
Change-Id: If214e07ab7fd8e50af0528c36595bf92716357f3
diff --git a/layers/vk_layer_utils.cpp b/layers/vk_layer_utils.cpp
index 5d7268e..d44a3b2 100644
--- a/layers/vk_layer_utils.cpp
+++ b/layers/vk_layer_utils.cpp
@@ -611,12 +611,12 @@
return result;
}
-void layer_debug_actions(debug_report_data *report_data, std::vector<VkDebugReportCallbackEXT> logging_callback,
+void layer_debug_actions(debug_report_data *report_data, std::vector<VkDebugReportCallbackEXT> &logging_callback,
const VkAllocationCallbacks *pAllocator, const char *layer_identifier) {
uint32_t report_flags = 0;
uint32_t debug_action = 0;
- VkDebugReportCallbackEXT callback;
+ VkDebugReportCallbackEXT callback = VK_NULL_HANDLE;
std::string report_flags_key = layer_identifier;
std::string debug_action_key = layer_identifier;