Fix a memleak pointed by @Zeno- in MeshUpdateQueue
[oweals/minetest.git] / src / content_cao.h
index f30e90e21049f2359d13a8c34c27461e18326299..3be75352992eb8754a00770cb21ff912423f2882 100644 (file)
@@ -200,7 +200,9 @@ public:
 
        void updateTexturePos();
 
-       void updateTextures(const std::string mod);
+       // std::string copy is mandatory as mod can be a class member and there is a swap
+       // on those class members
+       void updateTextures(std::string mod);
 
        void updateAnimation();