aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util/Manual.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/Manual.hxx b/src/util/Manual.hxx
index 684c7e1da..6f080ff29 100644
--- a/src/util/Manual.hxx
+++ b/src/util/Manual.hxx
@@ -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;