holocronweaver / ogre-procedural-old

Automatically exported from code.google.com/p/ogre-procedural
0 stars 0 forks source link

Memory leak in Test.cpp #68

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
You allocate memory with new and put it on a std::vector but you never delete 
it. Valgrind reports these:

==3712== 344 (88 direct, 256 indirect) bytes in 1 blocks are definitely lost in 
loss record 393 of 529
==3712==    at 0x4C25F07: operator new(unsigned long) (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3712==    by 0x41B831: Unit_Tests::createScene() (Tests.cpp:48)
==3712==    by 0x411682: BaseApplication::setup() (BaseApplication.cpp:233)
==3712==    by 0x412152: BaseApplication::go() (BaseApplication.cpp:202)
==3712==    by 0x411372: main (Tests.cpp:122)

Original issue reported on code.google.com by svenst...@gmail.com on 24 Jul 2011 at 10:09

GoogleCodeExporter commented 8 years ago

Original comment by michael.broutin@gmail.com on 25 Jul 2011 at 12:23

GoogleCodeExporter commented 8 years ago

Original comment by michael.broutin@gmail.com on 27 Jul 2011 at 6:27