Util/Manual: use Get() in Destruct()

This commit is contained in:
Max Kellermann 2014-12-09 23:08:53 +01:00
parent 14f9cdde6b
commit 1889150013

View File

@ -84,8 +84,8 @@ public:
void Destruct() { void Destruct() {
assert(initialized); assert(initialized);
T *t = (T *)data; T &t = Get();
t->T::~T(); t.T::~T();
#ifndef NDEBUG #ifndef NDEBUG
initialized = false; initialized = false;