Before another memory allocation is made for
Code: Select all
packet->image
If I put
Code: Select all
delete packet->image;packet->image = nullptr;
I'm seeing other memory leaks, but I want to get a better handle on them before I post anything more here.