projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10502b5
)
fix memory leak in loadMedia
author
sapier
<Sapier at GMX dot net>
Sun, 7 Apr 2013 18:39:59 +0000
(20:39 +0200)
committer
kwolekr
<kwolekr@minetest.net>
Mon, 8 Apr 2013 03:40:33 +0000
(23:40 -0400)
src/client.cpp
patch
|
blob
|
history
diff --git
a/src/client.cpp
b/src/client.cpp
index 4b14125cd86e9c93b69341c02ed49d9c5c3b8abf..64b01a5a4cb4a524d503ab58538100d7321f0109 100644
(file)
--- 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;
}