Skip to content

Commit

Permalink
Fixes deleter passed to the std::shared_ptr<void> (gazebosim#1009)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll authored Jun 13, 2024
1 parent f3d3073 commit 649f7f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShaderParam.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void ShaderParam::InitializeBuffer(uint32_t _count)
{
this->dataPtr->count = _count;
this->dataPtr->buffer.reset(new float[_count],
std::default_delete<float[]>());
[](void *ptr) { delete [] static_cast<float*>(ptr); });
}

//////////////////////////////////////////////////
Expand Down

0 comments on commit 649f7f0

Please sign in to comment.