aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-04-07 20:39:59 +0200
committerkwolekr <kwolekr@minetest.net>2013-04-07 23:40:33 -0400
commit0d26bb36aff7d4b76b0b8df3bd475954bc3867ba (patch)
tree4a1ec4129f1548abdf6fb460fae51d1ef173dacb
parent10502b59bce198f8ccbdb6e3d154b25873b9406d (diff)
downloadminetest-0d26bb36aff7d4b76b0b8df3bd475954bc3867ba.tar.gz
minetest-0d26bb36aff7d4b76b0b8df3bd475954bc3867ba.tar.bz2
minetest-0d26bb36aff7d4b76b0b8df3bd475954bc3867ba.zip
fix memory leak in loadMedia
-rw-r--r--src/client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 4b14125cd..64b01a5a4 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -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;
}