From c9f5617f06503d951b3ed808cf07fb6362a7f8d1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 8 Dec 2018 14:22:20 -0800 Subject: Avoid several uses of memset --- Alc/alc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/alc.cpp') diff --git a/Alc/alc.cpp b/Alc/alc.cpp index 810cba10..1d36dcbd 100644 --- a/Alc/alc.cpp +++ b/Alc/alc.cpp @@ -1263,8 +1263,8 @@ static void alc_deinit(void) alc_cleanup(); - memset(&PlaybackBackend, 0, sizeof(PlaybackBackend)); - memset(&CaptureBackend, 0, sizeof(CaptureBackend)); + PlaybackBackend = BackendInfo{}; + CaptureBackend = BackendInfo{}; for(i = 0;i < BackendListSize;i++) BackendList[i].getFactory().deinit(); -- cgit v1.2.3