[Gdal-dev] Reverse the effects of GDALAllRegister()?

Ben Discoe ben at vterrain.org
Wed Jun 18 19:21:52 EDT 2003


I am finding a lot of unfreed memory when my program exits.  Tracking it
down, much of it is allocated in places like:
	GDALRegister_FAST()
	GDALRegister_FIT() etc.
Which are called by the usual call to:
	GDALAllRegister()

I looked for, but couldn't find, a way to tell GDAL to "unregister" and
free all the drivers that it allocates with GDALAllRegister().  There is
a method GDALDeregisterDriver(), but is only does a single driver and
doesn't actually free it.

Do we need a method like GDALAllFree(), or is there already a way to do
it?

Thanks,
Ben




More information about the Gdal-dev mailing list