Browse Source

prc: give StreamWrapperBase virtual destructor (fixes compile error)

The compile error was observed with VS 2019 + clang-cl + Ninja + CMake in a Standard build on Windows 10.
rdb 5 years ago
parent
commit
00b81f381a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      dtool/src/prc/streamWrapper.h

+ 1 - 0
dtool/src/prc/streamWrapper.h

@@ -26,6 +26,7 @@ class EXPCL_DTOOL_PRC StreamWrapperBase {
 protected:
 protected:
   INLINE StreamWrapperBase();
   INLINE StreamWrapperBase();
   INLINE StreamWrapperBase(const StreamWrapperBase &copy) = delete;
   INLINE StreamWrapperBase(const StreamWrapperBase &copy) = delete;
+  virtual ~StreamWrapperBase() {}
 
 
 PUBLISHED:
 PUBLISHED:
   INLINE void acquire();
   INLINE void acquire();