Changeset - r25177:5916789c4d59
[Not reviewed]
master
0 1 0
Milek7 - 3 years ago 2021-04-13 15:12:56
Milek7@users.noreply.github.com
Fix: Add virtual destructor to link graph Path.

Classes derived from Path were freed through base class pointer, but no virtual destructor was present.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/linkgraph/linkgraphjob.h
Show inline comments
 
@@ -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; }
0 comments (0 inline, 0 general)