From d5da5afaae28d0998e930da3c7ffbc854df09108 Mon Sep 17 00:00:00 2001 From: jakcron Date: Fri, 11 May 2018 21:10:04 +0800 Subject: [PATCH] [fnd] Add pure virtual destructor to IFile to prevent pointers of it being deleted. --- lib/libfnd/include/fnd/IFile.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libfnd/include/fnd/IFile.h b/lib/libfnd/include/fnd/IFile.h index 3c12bba..c3db714 100644 --- a/lib/libfnd/include/fnd/IFile.h +++ b/lib/libfnd/include/fnd/IFile.h @@ -6,6 +6,8 @@ namespace fnd class IFile { public: + virtual ~IFile() = 0; + virtual size_t size() = 0; virtual void seek(size_t offset) = 0; virtual void read(byte_t* out, size_t len) = 0;