Skip to content

Commit

Permalink
winevulkan: Fix vkDestroyDebugUtilsMessengerEXT with NULL object.
Browse files Browse the repository at this point in the history
Signed-off-by: Georg Lehmann <[email protected]>
Signed-off-by: Alexandre Julliard <[email protected]>
  • Loading branch information
DadSchoorse authored and julliard committed Feb 5, 2021
1 parent c66e0e5 commit ffd58f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dlls/winevulkan/vulkan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1940,6 +1940,9 @@ void WINAPI wine_vkDestroyDebugUtilsMessengerEXT(

object = wine_debug_utils_messenger_from_handle(messenger);

if (!object)
return;

instance->funcs.p_vkDestroyDebugUtilsMessengerEXT(instance->instance, object->debug_messenger, NULL);
WINE_VK_REMOVE_HANDLE_MAPPING(instance, object);

Expand Down

0 comments on commit ffd58f6

Please sign in to comment.