Skip to content

Instantly share code, notes, and snippets.

@appgurueu
Created January 13, 2024 17:02
Show Gist options
  • Save appgurueu/468f6f9d95ff5fc8589abc4341b69e59 to your computer and use it in GitHub Desktop.
Save appgurueu/468f6f9d95ff5fc8589abc4341b69e59 to your computer and use it in GitHub Desktop.
commit 7053f74f10cbbc76a45223ddd7ea0cec883c1a92
Author: Lars Mueller <appgurulars@gmx.de>
Date: Sat Jan 13 17:55:41 2024 +0100
Fix scene nodes not dropping meshes (memleak)
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();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment