From 71a4d6db6f88cbb735cd959b3dd16d83a27474cf Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 29 Dec 2018 02:16:16 -0800 Subject: Return a unique_ptr for the backend --- Alc/backends/loopback.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/backends/loopback.cpp') diff --git a/Alc/backends/loopback.cpp b/Alc/backends/loopback.cpp index 6bce90ff..6404d413 100644 --- a/Alc/backends/loopback.cpp +++ b/Alc/backends/loopback.cpp @@ -70,10 +70,10 @@ bool LoopbackBackendFactory::querySupport(BackendType type) void LoopbackBackendFactory::probe(DevProbe, std::string*) { } -BackendBase *LoopbackBackendFactory::createBackend(ALCdevice *device, BackendType type) +BackendPtr LoopbackBackendFactory::createBackend(ALCdevice *device, BackendType type) { if(type == BackendType::Loopback) - new LoopbackBackend{device}; + return BackendPtr{new LoopbackBackend{device}}; return nullptr; } -- cgit v1.2.3