aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/wave.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/wave.c')
-rw-r--r--Alc/backends/wave.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/Alc/backends/wave.c b/Alc/backends/wave.c
index 1c502fd9..538ab5e6 100644
--- a/Alc/backends/wave.c
+++ b/Alc/backends/wave.c
@@ -84,7 +84,7 @@ typedef struct ALCwaveBackend {
static int ALCwaveBackend_mixerProc(void *ptr);
static void ALCwaveBackend_Construct(ALCwaveBackend *self, ALCdevice *device);
-static DECLARE_FORWARD(ALCwaveBackend, ALCbackend, void, Destruct)
+static void ALCwaveBackend_Destruct(ALCwaveBackend *self);
static ALCenum ALCwaveBackend_open(ALCwaveBackend *self, const ALCchar *name);
static void ALCwaveBackend_close(ALCwaveBackend *self);
static ALCboolean ALCwaveBackend_reset(ALCwaveBackend *self);
@@ -114,6 +114,11 @@ static void ALCwaveBackend_Construct(ALCwaveBackend *self, ALCdevice *device)
self->killNow = 1;
}
+static void ALCwaveBackend_Destruct(ALCwaveBackend *self)
+{
+ ALCwaveBackend_close(self);
+ ALCbackend_Destruct(STATIC_CAST(ALCbackend, self));
+}
static int ALCwaveBackend_mixerProc(void *ptr)
{