diff --git a/Project.toml b/Project.toml index f53a0d8..835763d 100644 --- a/Project.toml +++ b/Project.toml @@ -3,7 +3,7 @@ uuid = "add2ef01-049f-52c4-9ee2-e494f65e021a" keywords = ["GDAL", "IO"] license = "MIT" desc = "Wrapper for GDAL - Geospatial Data Abstraction Library" -version = "1.2.4" +version = "1.2.5" [deps] CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82" diff --git a/gen/epilogue.jl b/gen/epilogue.jl index 144b2e6..132d709 100644 --- a/gen/epilogue.jl +++ b/gen/epilogue.jl @@ -5,9 +5,9 @@ const GDAL_DATA = Ref{String}() const PROJ_LIB = Ref{String}() function __init__() - # Cleanup at exit + # cleanup at exit atexit(gdaldestroy) - + # register custom error handler funcptr = @cfunction(gdaljl_errorhandler, Ptr{Cvoid}, (CPLErr, Cint, Cstring)) cplseterrorhandler(funcptr) diff --git a/src/GDAL.jl b/src/GDAL.jl index 1c7481e..fa99264 100644 --- a/src/GDAL.jl +++ b/src/GDAL.jl @@ -32994,6 +32994,7 @@ const GDAL_DATA = Ref{String}() const PROJ_LIB = Ref{String}() function __init__() + atexit(gdaldestroy) funcptr = @cfunction(gdaljl_errorhandler, Ptr{Cvoid}, (CPLErr, Cint, Cstring)) cplseterrorhandler(funcptr) versionstring = gdalversioninfo("RELEASE_NAME")