Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak in TexturedMeshVisual::addTexture() #9

Closed
barryridge opened this issue Jul 30, 2020 · 0 comments
Closed

Memory leak in TexturedMeshVisual::addTexture() #9

barryridge opened this issue Jul 30, 2020 · 0 comments

Comments

@barryridge
Copy link
Contributor

imageData never gets deleted after this copy:

  uchar* imageData = new uchar[dataSize];
  std::memcpy(imageData, &data[0], dataSize);

This causes a memory leak when visualizing textures on MeshGeometryStamped topics.

barryridge pushed a commit to barryridge/mesh_tools that referenced this issue Jul 30, 2020
@spuetz spuetz closed this as completed in 289510a Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant