From 4ea74f3b153f11a9d47fb713661df6e26b8c95ff Mon Sep 17 00:00:00 2001 From: Ondrej Novak Date: Sun, 9 Mar 2025 16:59:54 +0100 Subject: [PATCH] Fix memory leaks --- platform/legacy_coroutines.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/platform/legacy_coroutines.cpp b/platform/legacy_coroutines.cpp index 0bc0616..45a0d93 100644 --- a/platform/legacy_coroutines.cpp +++ b/platform/legacy_coroutines.cpp @@ -39,7 +39,6 @@ struct MsgQueue { TaskInfo *sender; }; -static std::queue msg_queue; static int recursion_count = 0; @@ -148,7 +147,6 @@ char is_running(int id_num) { return !iter->second->exited; } void unsuspend_task(EVENT_MSG *msg) { - msg_queue.push({msg, current_task_inst}); broadcast_message(msg); } void task_sleep(void) {