Skip to content

Commit

Permalink
Deregister custom gdaljl_errorhandler at Julia exit
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu17g authored and visr committed Oct 2, 2021
1 parent 09e81d5 commit ed96073
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@
*.jl.*.cov
*.jl.mem
log.txt
.DS_Store
1 change: 1 addition & 0 deletions gen/epilogue.jl
Expand Up @@ -8,6 +8,7 @@ function __init__()
# register custom error handler
funcptr = @cfunction(gdaljl_errorhandler, Ptr{Cvoid}, (CPLErr, Cint, Cstring))
cplseterrorhandler(funcptr)
atexit(() -> cplseterrorhandler(C_NULL))

# get GDAL version number
versionstring = gdalversioninfo("RELEASE_NAME")
Expand Down

0 comments on commit ed96073

Please sign in to comment.