mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 21:42:05 +08:00
moded/RunModel: fix possible memory leak without a virtual destructor (#22990)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
class RunModel {
|
||||
public:
|
||||
virtual ~RunModel() {}
|
||||
virtual void addRecurrent(float *state, int state_size) {}
|
||||
virtual void addDesire(float *state, int state_size) {}
|
||||
virtual void addTrafficConvention(float *state, int state_size) {}
|
||||
|
||||
Reference in New Issue
Block a user