forked from Mirrorlandia_minetest/minetest
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