From 18891500132442db3a7eecca95468b83886d12b8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 9 Dec 2014 23:08:53 +0100 Subject: Util/Manual: use Get() in Destruct() --- src/util/Manual.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util') 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; -- cgit v1.2.3