moded/RunModel: fix possible memory leak without a virtual destructor (#22990)

pull/22993/head
Dean Lee 2021-11-21 03:41:24 +08:00 committed by GitHub
parent 9cb46cc4a1
commit d97ad1302a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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) {}