summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-26 17:14:46 +0100
committerGitHub <noreply@github.com>2021-01-26 17:14:46 +0100
commit96bcaadbf2d79d1e15fa724a7e4301a243944a01 (patch)
tree79d253499a9891b997fab4ab0f445a2d40952ebc /drivers
parentcc4388d0f32d6cb319b94c6a7ca3ff3103b26bb5 (diff)
parentb80c502c2cf98f6c4ff8876bdc64d3d3627b1c2a (diff)
Merge pull request #45476 from qarmin/add_temp_variable
Add temporary variable to not use freed memory
Diffstat (limited to 'drivers')
-rw-r--r--drivers/vulkan/vulkan_context.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp
index 7ac860087e..1a631f4a2c 100644
--- a/drivers/vulkan/vulkan_context.cpp
+++ b/drivers/vulkan/vulkan_context.cpp
@@ -1632,7 +1632,8 @@ void VulkanContext::set_object_name(VkObjectType p_object_type, uint64_t p_objec
name_info.pNext = nullptr;
name_info.objectType = p_object_type;
name_info.objectHandle = p_object_handle;
- name_info.pObjectName = p_object_name.utf8().get_data();
+ CharString object_name = p_object_name.utf8();
+ name_info.pObjectName = object_name.get_data();
SetDebugUtilsObjectNameEXT(device, &name_info);
}