From cbc5431d62e3fe9166f18395dce3ddf2af0906d3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 28 Mar 2026 21:32:23 +0000 Subject: Switch modules from reference<> to shared_ptr<> and weak_ptr<>. --- modules/httpd_config.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/httpd_config.cpp') diff --git a/modules/httpd_config.cpp b/modules/httpd_config.cpp index 508c7c225..558107e2b 100644 --- a/modules/httpd_config.cpp +++ b/modules/httpd_config.cpp @@ -35,8 +35,8 @@ private: public: ModuleHttpConfig() : Module(VF_VENDOR, "Allows the server configuration to be viewed over HTTP via the /config path.") - , HTTPRequestEventListener(this) - , API(this) + , HTTPRequestEventListener(weak_from_this()) + , API(weak_from_this()) { } @@ -72,7 +72,7 @@ public: buffer << '>' << std::endl << std::endl; } - HTTPDocumentResponse response(this, request, &buffer, 200); + HTTPDocumentResponse response(weak_from_this(), request, &buffer, 200); response.headers.SetHeader("X-Powered-By", MODNAME); response.headers.SetHeader("Content-Type", "text/plain"); API->SendResponse(response); -- cgit v1.3.1-10-gc9f91