Commit 18891500 authored by Max Kellermann's avatar Max Kellermann

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

parent 14f9cdde
......@@ -84,8 +84,8 @@ public:
void Destruct() {
assert(initialized);
T *t = (T *)data;
t->T::~T();
T &t = Get();
t.T::~T();
#ifndef NDEBUG
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