mirror of
https://github.com/minetest/minetest.git
synced 2025-02-17 02:22:26 +01: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);
|
mesh = smgr->getMesh(rfile);
|
||||||
smgr->getMeshCache()->addMesh(filename.c_str(), mesh);
|
smgr->getMeshCache()->addMesh(filename.c_str(), mesh);
|
||||||
|
rfile->drop();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user