From ced813a483dd1e14361c3c7607e5953efd2f08ff Mon Sep 17 00:00:00 2001 From: Benau Date: Mon, 19 Jul 2021 12:24:47 +0800 Subject: [PATCH] Fix memory leak --- src/karts/official_karts.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/karts/official_karts.cpp b/src/karts/official_karts.cpp index c8d7b9f38..c9f7a4e75 100644 --- a/src/karts/official_karts.cpp +++ b/src/karts/official_karts.cpp @@ -84,6 +84,7 @@ void load() g_official_karts.emplace_back(name, type, width, height, length, gravity_shift); } + delete root; } // load // ----------------------------------------------------------------------------