fix memory leak in loadMedia
authorsapier <Sapier at GMX dot net>
Sun, 7 Apr 2013 18:39:59 +0000 (20:39 +0200)
committerkwolekr <kwolekr@minetest.net>
Mon, 8 Apr 2013 03:40:33 +0000 (23:40 -0400)
src/client.cpp

index 4b14125cd86e9c93b69341c02ed49d9c5c3b8abf..64b01a5a4cb4a524d503ab58538100d7321f0109 100644 (file)
@@ -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;
        }