nimbuscontrols / EIPScanner

Free implementation of EtherNet/IP in C++
https://eipscanner.readthedocs.io/en/latest/
MIT License
224 stars 90 forks source link

Use virtual destructor for SessionInfoIf #111

Open tsr-boxbot opened 2 months ago

tsr-boxbot commented 2 months ago

SessionInfoIf is ment to be a base class for polymorphic types. As such it should have a virtual destructor. This is so that objects that are descendants of it will properly call destructors of thier parent classes. Without this resource leaks can easily occur.