Commit 18891500 authored by Max Kellermann's avatar Max Kellermann

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

parent 14f9cdde
...@@ -84,8 +84,8 @@ public: ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment