Skip to content

Commit

Permalink
Streaming operation reference fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
bretambrose committed Sep 19, 2024
1 parent dee89a3 commit 2f9d543
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/iot/MqttRequestResponseClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,17 @@ namespace Aws
aws_mqtt_request_response_client_create_streaming_operation(client, &streamingOptions);
if (!stream)
{
Aws::Crt::Delete(implHandle, allocator);
return nullptr;
}

auto impl = Aws::Crt::MakeShared<StreamingOperationImpl>(
allocator, stream, options, aws_mqtt_request_response_client_get_event_loop(client));
auto streamingOperation = Aws::Crt::MakeShared<StreamingOperation>(allocator, impl);

implHandle->m_allocator = allocator;
implHandle->m_impl = impl;

return streamingOperation;
}

Expand Down

0 comments on commit 2f9d543

Please sign in to comment.