aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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..df538c54d 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), alloc(0), used(0), allocated(0) {}
/**
* Copy constructor