From a3ec3a88e8c87c97d21dfaba77b426f4ab498bd2 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Sat, 13 Jan 2024 17:55:41 +0100 Subject: [PATCH] Fix scene nodes not dropping meshes (memleak) --- source/Irrlicht/CAnimatedMeshSceneNode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/Irrlicht/CAnimatedMeshSceneNode.cpp b/source/Irrlicht/CAnimatedMeshSceneNode.cpp index e08dd548..965e7f11 100644 --- a/source/Irrlicht/CAnimatedMeshSceneNode.cpp +++ b/source/Irrlicht/CAnimatedMeshSceneNode.cpp @@ -51,6 +51,8 @@ CAnimatedMeshSceneNode::~CAnimatedMeshSceneNode() { if (LoopCallBack) LoopCallBack->drop(); + if (Mesh) + Mesh->drop(); }