Skip to content

Commit

Permalink
Don't release the queue if it wasn't created
Browse files Browse the repository at this point in the history
  • Loading branch information
againull committed Mar 14, 2024
1 parent f56612e commit 2d555e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/conformance/exp_command_buffer/fixtures.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ struct urUpdatableCommandBufferExpExecutionTest
if (updatable_cmd_buf_handle) {
EXPECT_SUCCESS(urCommandBufferReleaseExp(updatable_cmd_buf_handle));
}
if (backend == UR_PLATFORM_BACKEND_LEVEL_ZERO) {
if (backend == UR_PLATFORM_BACKEND_LEVEL_ZERO && queue) {
ASSERT_SUCCESS(urQueueRelease(queue));
}

Expand All @@ -157,7 +157,7 @@ struct urUpdatableCommandBufferExpExecutionTest

ur_exp_command_buffer_handle_t updatable_cmd_buf_handle = nullptr;
ur_bool_t updatable_execution_range_support = true;
ur_queue_handle_t queue;
ur_queue_handle_t queue = nullptr;
};

struct urCommandBufferCommandExpTest
Expand Down

0 comments on commit 2d555e5

Please sign in to comment.