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

rs-multicam bug fix #4596

Merged

Conversation

AnnaRomanov
Copy link
Contributor

@AnnaRomanov AnnaRomanov commented Aug 7, 2019

Fix rs-multicam example bug (memory leak):
Previously the same colorizer was used for all devices, as a result a new unique-id was assigned for each received frame. Since textures are stored by the frame's unique id in example.hpp (in function render_video_frame), the change of ids caused allocation of a new texture for each frame, resulting in a memory leak.
Fix: store a map from device serial number to rs::colorizer and use a separate colorizer for each device.

…ulting in new unique-id for each new frame, causing allocation of new textures and memory leak)
@dorodnic dorodnic merged commit 3c0e6ea into IntelRealSense:development Aug 12, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants