aaronblanchard / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

Memory leak detected by Visual Studio (kmldom::Xsd::schema_) #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an empty KmlPtr using the factory
2. Call kmldom::SerializePretty (it will result in a call to
kmldom::Xsd::GetSchema())

What is the expected output? What do you see instead?
The memory used by kmldom::Xsd::schema_ is never freed.
As I am only using SerializePretty, I should not care about memory freeing
in kmldom::Xsd::schema_

What version of the product are you using? On what operating system?
Using libkml-0.6.0 on Win Xp, with Visual Studio 2005
Same issue appears with libkml-0.5.0

Did you run the unit test suite that comes with the project? Did all tests
pass?
Unable to ru test suite (compilation failed : C1060 compiler is out of heap
space)

Please provide any additional information below.

Original issue reported on code.google.com by simonhege@gmail.com on 12 Jan 2009 at 1:43

GoogleCodeExporter commented 9 years ago
Same issue appears in libkml-1.0.0-alpha1

Original comment by simonhege@gmail.com on 23 Mar 2009 at 11:08

GoogleCodeExporter commented 9 years ago
yes. I met the same problem with Visual Studio 2005/libkml-0.9.0.

Original comment by niho.bon...@gmail.com on 27 Mar 2009 at 8:17

GoogleCodeExporter commented 9 years ago
kmldom::Xsd is a singleton and is indeed not freed,
kmldom::KmlFactory is another singleton.
this sort of resource manage is not considered a memory leak

Original comment by kml.b...@gmail.com on 6 May 2009 at 4:28