Created
January 13, 2024 17:02
-
-
Save appgurueu/468f6f9d95ff5fc8589abc4341b69e59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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