mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
fix memory leak in loadMedia
This commit is contained in:
parent
10502b59bc
commit
0d26bb36af
@ -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…
Reference in New Issue
Block a user