From: sapier Date: Sun, 7 Apr 2013 18:39:59 +0000 (+0200) Subject: fix memory leak in loadMedia X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=0d26bb36aff7d4b76b0b8df3bd475954bc3867ba;p=zefram%2Fminetest%2Fminetest_engine.git fix memory leak in loadMedia --- diff --git a/src/client.cpp b/src/client.cpp index 4b14125c..64b01a5a 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; }