Hello, my team and I are working on a project named "network-analyzer" for our school, utilizing PcapPlusPlus with Qt6. This application is designed to operate in real-time, employing filters, and generating statistics about captured packets.
I'm currently facing difficulties in understanding how PcapPlusPlus manages memory, as I haven't observed explicit calls to delete in the tutorials (except for instances like readers). While I've found some information in the documentation, I'm still not entirely clear on the matter.
For instance, when we aimed to store a queue of RawPackets*, we were unsure about its safety. Is it acceptable to exclusively store pointers in the queue, leaving the real objects somewhere, and how can we be certain they won't be destroyed, potentially causing a segmentation fault? Additionally, should I be concerned about the size of these packets?
Any advice on this subject would be greatly appreciated. Specifically, I'm curious about how memory is managed in PcapPlusPlus and if storing this data in the application poses a risk of memory leaks.