aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc/secmem.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-03-16 17:32:40 +0000
committerlloyd <[email protected]>2012-03-16 17:32:40 +0000
commit1fce3fe2274cf3368e1f29827ed0f41cebba3726 (patch)
tree7a83f1d6d8fcf08dc8120aafba718dd11c1e52b7 /src/alloc/secmem.h
parent4c6327c95bd01de54487b3159b77a5152ed39564 (diff)
parent7371f7c59ae722769fbc0dc810583a0cd0e38877 (diff)
propagate from branch 'net.randombit.botan.tls-state-machine' (head c24b5d6b012131b177d38bddb8b06d73f81f70c4)
to branch 'net.randombit.botan.tls-session-ticket' (head 9977d4c118e1ac26425cef676ebf26cd5b2a470e)
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