Fix memory leak if deleting kart with swatter on
This commit is contained in:
parent
26db54c90f
commit
b773c009cb
@ -86,6 +86,7 @@ Attachment::Attachment(AbstractKart* kart)
|
|||||||
*/
|
*/
|
||||||
Attachment::~Attachment()
|
Attachment::~Attachment()
|
||||||
{
|
{
|
||||||
|
clear();
|
||||||
if(m_node)
|
if(m_node)
|
||||||
irr_driver->removeNode(m_node);
|
irr_driver->removeNode(m_node);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user