aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-09 23:08:53 +0100
committerMax Kellermann <max@duempel.org>2014-12-09 23:08:53 +0100
commit18891500132442db3a7eecca95468b83886d12b8 (patch)
tree60ff459ec7ace093fe250b96d1d2a685fbbfc2a9 /src/util
parent14f9cdde6b37abcedae977c8a5ef2b9b1fbf0938 (diff)
downloadmpd-18891500132442db3a7eecca95468b83886d12b8.tar.gz
mpd-18891500132442db3a7eecca95468b83886d12b8.tar.xz
mpd-18891500132442db3a7eecca95468b83886d12b8.zip
Util/Manual: use Get() in Destruct()
Diffstat (limited to 'src/util')
-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;