aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc/secmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc/secmem.h')
-rw-r--r--src/alloc/secmem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc/secmem.h b/src/alloc/secmem.h
index d07aa949f..6c8a75c44 100644
--- a/src/alloc/secmem.h
+++ b/src/alloc/secmem.h
@@ -164,9 +164,9 @@ class MemoryRegion
*/
void swap(MemoryRegion<T>& other);
- ~MemoryRegion() { deallocate(buf, allocated); }
+ virtual ~MemoryRegion() { deallocate(buf, allocated); }
protected:
- MemoryRegion() { buf = 0; alloc = 0; used = allocated = 0; }
+ MemoryRegion() : buf(0), used(0), allocated(0), alloc(0) {}
/**
* Copy constructor