PiRSquared17 / libkml

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

KmlFactory memory management undocumented #144

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The ownership and management of object returned from KmlFactory::GetFactory
is not documented.

The GetFactory allocates object in dynamic storage and assigns it to raw
pointer - a static member of KmlFactory. It is unclear who is responsible
for deallocation of the memory obtained for the KmlFactory itself.

If user won't perform clean-up, memory allocated by the
KmlFactory::GetFactory leaks.

Original issue reported on code.google.com by mloskot on 14 Apr 2010 at 1:55

GoogleCodeExporter commented 9 years ago
This is basically a duplicate of issue 88

Original comment by kml.b...@gmail.com on 19 Apr 2010 at 9:09

GoogleCodeExporter commented 9 years ago
I do not think it's a duplicate. This report is specifically about design and 
use of
KmlFactory and lack of documentation of it. 

Original comment by mloskot on 19 Apr 2010 at 9:24