mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-13 22:12:07 +08:00
moded/RunModel: fix possible memory leak without a virtual destructor (#22990)
old-commit-hash: d97ad1302a
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