From 9d854c7301702a230010c6515f62794a4c8dd136 Mon Sep 17 00:00:00 2001 From: auria Date: Sun, 12 Dec 2010 02:14:29 +0000 Subject: [PATCH] Fixed leak (Joerg: I'm not 100% sure on this one, can you check if what I did makes sense?) git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6967 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/slip_stream.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/slip_stream.cpp b/src/graphics/slip_stream.cpp index d80d99e1b..6225a7d2c 100644 --- a/src/graphics/slip_stream.cpp +++ b/src/graphics/slip_stream.cpp @@ -48,6 +48,8 @@ SlipStream::SlipStream(Kart* kart) : MovingTexture(0, 0), m_kart(kart) createMesh(m); m_node = irr_driver->addMesh(m_mesh); + m_mesh->drop(); + #ifdef DEBUG std::string debug_name = m_kart->getIdent()+" (slip-stream)"; m_node->setName(debug_name.c_str());