From 0d26bb36aff7d4b76b0b8df3bd475954bc3867ba Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 7 Apr 2013 20:39:59 +0200 Subject: [PATCH] fix memory leak in loadMedia --- src/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2