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

old-commit-hash: d97ad1302a
commatwo_master
Dean Lee 4 years ago committed by GitHub
parent 2d8780e5c6
commit a80999fd4f
  1. 1
      selfdrive/modeld/runners/runmodel.h

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

Loading…
Cancel
Save