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/pulseaudio.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Alc/backends/pulseaudio.cpp') diff --git a/Alc/backends/pulseaudio.cpp b/Alc/backends/pulseaudio.cpp index 8a089b88..e714ac3f 100644 --- a/Alc/backends/pulseaudio.cpp +++ b/Alc/backends/pulseaudio.cpp @@ -1664,12 +1664,12 @@ void PulseBackendFactory::probe(DevProbe type, std::string *outnames) } } -BackendBase *PulseBackendFactory::createBackend(ALCdevice *device, BackendType type) +BackendPtr PulseBackendFactory::createBackend(ALCdevice *device, BackendType type) { if(type == BackendType::Playback) - return new PulsePlayback{device}; + return BackendPtr{new PulsePlayback{device}}; if(type == BackendType::Capture) - return new PulseCapture{device}; + return BackendPtr{new PulseCapture{device}}; return nullptr; } -- cgit v1.2.3