From 50b5ff058caa2858ca0ef1e2d2bfcf5aba8d7bd2 Mon Sep 17 00:00:00 2001 From: Jakob Hasse Date: Sat, 9 Oct 2021 12:03:00 +0800 Subject: [PATCH] [cxx]: Added virtual desctructor in I2C class Closes https://github.com/espressif/esp-idf/issues/7435 --- .../experimental/experimental_cpp_component/include/i2c_cxx.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/cxx/experimental/experimental_cpp_component/include/i2c_cxx.hpp b/examples/cxx/experimental/experimental_cpp_component/include/i2c_cxx.hpp index 85240f2e5e..6cf4b0d9bc 100644 --- a/examples/cxx/experimental/experimental_cpp_component/include/i2c_cxx.hpp +++ b/examples/cxx/experimental/experimental_cpp_component/include/i2c_cxx.hpp @@ -419,6 +419,7 @@ protected: private: class CompTransferNode { public: + virtual ~CompTransferNode() = default; virtual void queue_cmd(i2c_cmd_handle_t handle, uint8_t i2c_addr) = 0; virtual void process_result(std::vector > &read_results) { } };