aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/null.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/null.c')
-rw-r--r--Alc/backends/null.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/Alc/backends/null.c b/Alc/backends/null.c
index 7010f41c..99729c0a 100644
--- a/Alc/backends/null.c
+++ b/Alc/backends/null.c
@@ -214,13 +214,8 @@ static ALCbackend* ALCnullBackendFactory_createBackend(ALCnullBackendFactory* UN
if(type == ALCbackend_Playback)
{
ALCnullBackend *backend;
-
- backend = ALCnullBackend_New(sizeof(*backend));
+ NEW_OBJ(backend, ALCnullBackend)(device);
if(!backend) return NULL;
- memset(backend, 0, sizeof(*backend));
-
- ALCnullBackend_Construct(backend, device);
-
return STATIC_CAST(ALCbackend, backend);
}