aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/backends/wave.cpp2
1 files changed, 2 insertions, 0 deletions
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)