mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
fix memory leak in loadMedia
This commit is contained in:
@@ -1006,7 +1006,7 @@ bool Client::loadMedia(const std::string &data, const std::string &filename)
|
||||
|
||||
mesh = smgr->getMesh(rfile);
|
||||
smgr->getMeshCache()->addMesh(filename.c_str(), mesh);
|
||||
|
||||
rfile->drop();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user