From 844dd45db60baf49e80ab4da2577303933121f3e Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sun, 8 Jan 2017 17:57:21 -0400 Subject: [PATCH] Add a virtual destructor to a class which has virtual methods. --- SPIRV/SPVRemapper.h | 1 + 1 file changed, 1 insertion(+) diff --git a/SPIRV/SPVRemapper.h b/SPIRV/SPVRemapper.h index 1ec07541..f9f369a3 100755 --- a/SPIRV/SPVRemapper.h +++ b/SPIRV/SPVRemapper.h @@ -112,6 +112,7 @@ class spirvbin_t : public spirvbin_base_t { public: spirvbin_t(int verbose = 0) : entryPoint(spv::NoResult), largestNewId(0), verbose(verbose) { } + virtual ~spirvbin_t() { } // remap on an existing binary in memory void remap(std::vector& spv, std::uint32_t opts = DO_EVERYTHING);