From 271d6f494fb3f4a6896408fff95f3a388ec0174a Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Tue, 31 Aug 2021 01:19:20 -0700 Subject: [PATCH] RequestServer: Use smart pointers for allocating protocols --- Userland/Services/RequestServer/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Userland/Services/RequestServer/main.cpp b/Userland/Services/RequestServer/main.cpp index 6f8e488b73..e3fea3fb0d 100644 --- a/Userland/Services/RequestServer/main.cpp +++ b/Userland/Services/RequestServer/main.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include #include #include #include @@ -38,9 +39,9 @@ int main(int, char**) return 1; } - [[maybe_unused]] auto gemini = new RequestServer::GeminiProtocol; - [[maybe_unused]] auto http = new RequestServer::HttpProtocol; - [[maybe_unused]] auto https = new RequestServer::HttpsProtocol; + [[maybe_unused]] auto gemini = make(); + [[maybe_unused]] auto http = make(); + [[maybe_unused]] auto https = make(); auto socket = Core::LocalSocket::take_over_accepted_socket_from_system_server(); VERIFY(socket);