From f8c57be7029ba531c21f8e08cf12e1ba7e5f183c Mon Sep 17 00:00:00 2001 From: Reimu NotMoe Date: Thu, 19 Sep 2024 06:18:50 +0800 Subject: [PATCH] Fix use-after-free when exiting w/ a pairing session --- src/nvhttp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nvhttp.cpp b/src/nvhttp.cpp index 427d03d9..759f89c4 100644 --- a/src/nvhttp.cpp +++ b/src/nvhttp.cpp @@ -1385,6 +1385,8 @@ namespace nvhttp { // Wait for any event shutdown_event->view(); + map_id_sess.clear(); + https_server.stop(); http_server.stop();