aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/wave.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-09 02:55:28 -0800
committerChris Robinson <[email protected]>2018-11-09 02:55:28 -0800
commitb327a50a15a6b0a9991fe59fa5dc775f195b7994 (patch)
treecc5ea50cee05b2dcc0ea879d159ffe69b9ed6ca2 /Alc/backends/wave.cpp
parentb2cdfe58ebf5c39fc618347945fe52ddf91632ff (diff)
Add missing consttructor and destructor calls for the wave backend
Diffstat (limited to 'Alc/backends/wave.cpp')
-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)