mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 02:12:45 +01:00
rwlib: free Geometry OpenGL buffers
Should fix this memory leak: ==31441== 576 bytes in 4 blocks are possibly lost in loss record 2,109 of 2,723 ==31441== at 0x4C30A1E: calloc (vg_replace_malloc.c:711) ==31441== by 0x14F98CEF: ??? (in /usr/lib64/dri/i965_dri.so) ==31441== by 0x14FD8303: ??? (in /usr/lib64/dri/i965_dri.so) ==31441== by 0x14FD8B6F: ??? (in /usr/lib64/dri/i965_dri.so) ==31441== by 0x14BF0C40: ??? (in /usr/lib64/dri/i965_dri.so) ==31441== by 0x14BF0E27: ??? (in /usr/lib64/dri/i965_dri.so) ==31441== by 0x910D28: LoaderDFF::readGeometry(RWBStream const&) (LoaderDFF.cpp:253) ==31441== by 0x9104E2: LoaderDFF::readGeometryList(RWBStream const&) (LoaderDFF.cpp:129) ==31441== by 0x911CED: LoaderDFF::loadFromMemory(std::shared_ptr<FileContentsInfo>) (LoaderDFF.cpp:474) ==31441== by 0x7BE007: GameData::loadModel(unsigned short) (GameData.cpp:474) ==31441== by 0x7E0DD2: GameWorld::createInstance(unsigned short, glm::tvec3<float, (glm::precision)0> const&, glm::tquat<float, (glm::precision)0> const&) (GameWorld.cpp:144) ==31441== by 0x86E0BE: opcode_029b(ScriptArguments const&, int, glm::tvec3<float, (glm::precision)0>, ScriptObjectType<InstanceObject>&) (GTA3ModuleImpl.inl:7234) ==31441== ==31441== 696 bytes in 3 blocks are possibly lost in loss record 2,197 of 2,723 ==31441== at 0x4C30A1E: calloc (vg_replace_malloc.c:711) ==31441== by 0x14FD8298: ??? (in /usr/lib64/dri/i965_dri.so) ==31441== by 0x14BEEF21: ??? (in /usr/lib64/dri/i965_dri.so) ==31441== by 0x14BEF057: ??? (in /usr/lib64/dri/i965_dri.so) ==31441== by 0x910CA6: LoaderDFF::readGeometry(RWBStream const&) (LoaderDFF.cpp:248) ==31441== by 0x9104E2: LoaderDFF::readGeometryList(RWBStream const&) (LoaderDFF.cpp:129) ==31441== by 0x911CED: LoaderDFF::loadFromMemory(std::shared_ptr<FileContentsInfo>) (LoaderDFF.cpp:474) ==31441== by 0x7BD346: GameData::loadClump(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (GameData.cpp:394) ==31441== by 0x75914F: RWGame::RWGame(Logger&, int, char**) (RWGame.cpp:54) ==31441== by 0x749175: main (main.cpp:13)
This commit is contained in:
parent
8e98cf2311
commit
2282734425
@ -8,6 +8,7 @@ Geometry::Geometry() : flags(0) {
|
||||
}
|
||||
|
||||
Geometry::~Geometry() {
|
||||
glDeleteBuffers(1, &EBO);
|
||||
}
|
||||
|
||||
ModelFrame::ModelFrame(unsigned int index, glm::mat3 dR, glm::vec3 dT)
|
||||
|
Loading…
Reference in New Issue
Block a user