mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
fix memory leak in loadMedia
This commit is contained in:
parent
10502b59bc
commit
0d26bb36af
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue