1
0
Fork 0

Fix: Add virtual destructor to link graph Path.

Classes derived from Path were freed through base class pointer, but no virtual destructor was present.
pull/9041/head
Milek7 2021-04-13 17:12:56 +02:00 committed by Michael Lutz
parent 433602b072
commit 4cd9e0f41b
1 changed files with 1 additions and 0 deletions

View File

@ -367,6 +367,7 @@ public:
static Path *invalid_path;
Path(NodeID n, bool source = false);
virtual ~Path() = default;
/** Get the node this leg passes. */
inline NodeID GetNode() const { return this->node; }