From 9bd4c87b9ccc45e3428857053670bbd0615e9f75 Mon Sep 17 00:00:00 2001 From: Benau Date: Wed, 26 Oct 2016 09:21:17 +0800 Subject: [PATCH] Fix leaking createTextBillboard --- src/scriptengine/script_track.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scriptengine/script_track.cpp b/src/scriptengine/script_track.cpp index 16f00e914..7b3b4fb68 100644 --- a/src/scriptengine/script_track.cpp +++ b/src/scriptengine/script_track.cpp @@ -105,6 +105,7 @@ namespace Scripting core::vector3df(1.5f, 1.5f, 1.5f)); World::getWorld()->getTrack()->addNode(tb); + tb->drop(); } else {