Skip to content

Conversation

@paulpv
Copy link
Member

@paulpv paulpv commented Jun 11, 2025

Summary

  • fix indentation for conv_buffer cleanup

Testing

  • git diff --stat

https://chatgpt.com/codex/tasks/task_e_6849f8c85f188333b5685a04bee443f9

@paulpv
Copy link
Member Author

paulpv commented Jun 11, 2025

This is to fix a memory leak freeing up the following array allocation:

o->conv_buffer = new uint8_t[(size_t)height * (size_t)o->conv_linesize * 2]();

o->conv_buffer = new uint8_t[(size_t)height * (size_t)o->conv_linesize * 2]();

@paulpv
Copy link
Member Author

paulpv commented Jun 11, 2025

FYI, this bug was found by OpenAI Codex.

@Trouffman Trouffman self-requested a review June 12, 2025 11:14
@Trouffman Trouffman merged commit ebddd37 into master Jun 12, 2025
6 checks passed
@Trouffman Trouffman deleted the codex/fix-memory-deallocation-bug-in-ndi-output.cpp branch June 12, 2025 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants