summaryrefslogtreecommitdiff
path: root/fastboot/fastboot.cpp
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2021-03-19 11:46:42 -0700
committerYifan Hong <elsk@google.com>2021-03-19 11:46:48 -0700
commitd2e8cb55565fbf32e37ada5d98f002792525c597 (patch)
treed467e00f59a6a405036524845d59b84ac4be6081 /fastboot/fastboot.cpp
parentc90fce43876d96e85e9698bec16e3565a07da13d (diff)
fastboot driver: add virtual dtor to ImageSource.
Test: Treehugger Change-Id: Ia91d6d344186a07d90e3983c153d8170859eed5b
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r--fastboot/fastboot.cpp1
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;
};