Le dimanche 20 octobre 2013 18:21:23, Frank Warmerdam a écrit : > Even, > > I'm happy with this RFC. It's a bit sad that the list of domains is > duplicated and has to be freed again by the caller, but it certainly > avoids any doubts about the lifetime of the returned list.
Hi Frank, Indeed, for the default implementation it would have been doable to return oMDMD.GetDomainList() directly, but for specialized implementations this wasn't possible and would oblige them to have a member variable to hold the return value. So returning a list to free with CSLDestroy() seemed to be a simpler approach. Even -- Geospatial professional services http://even.rouault.free.fr/services.html _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev