From b327a50a15a6b0a9991fe59fa5dc775f195b7994 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 9 Nov 2018 02:55:28 -0800 Subject: Add missing consttructor and destructor calls for the wave backend --- Alc/backends/wave.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Alc') diff --git a/Alc/backends/wave.cpp b/Alc/backends/wave.cpp index d4e5bf97..4f3947e5 100644 --- a/Alc/backends/wave.cpp +++ b/Alc/backends/wave.cpp @@ -104,6 +104,7 @@ DEFINE_ALCBACKEND_VTABLE(ALCwaveBackend); static void ALCwaveBackend_Construct(ALCwaveBackend *self, ALCdevice *device) { + new (self) ALCwaveBackend{}; ALCbackend_Construct(STATIC_CAST(ALCbackend, self), device); SET_VTABLE2(ALCwaveBackend, ALCbackend, self); @@ -123,6 +124,7 @@ static void ALCwaveBackend_Destruct(ALCwaveBackend *self) self->mFile = nullptr; ALCbackend_Destruct(STATIC_CAST(ALCbackend, self)); + self->~ALCwaveBackend(); } static int ALCwaveBackend_mixerProc(void *ptr) -- cgit v1.2.3