diff options
author | Yifan Hong <elsk@google.com> | 2021-03-19 11:46:42 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2021-03-19 11:46:48 -0700 |
commit | d2e8cb55565fbf32e37ada5d98f002792525c597 (patch) | |
tree | d467e00f59a6a405036524845d59b84ac4be6081 /fastboot/fastboot.cpp | |
parent | c90fce43876d96e85e9698bec16e3565a07da13d (diff) |
fastboot driver: add virtual dtor to ImageSource.
Test: Treehugger
Change-Id: Ia91d6d344186a07d90e3983c153d8170859eed5b
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r-- | fastboot/fastboot.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 38be934b9..829958a78 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -1309,6 +1309,7 @@ static void CancelSnapshotIfNeeded() { class ImageSource { public: + virtual ~ImageSource() {}; virtual bool ReadFile(const std::string& name, std::vector<char>* out) const = 0; virtual int OpenFile(const std::string& name) const = 0; }; |