diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-06-03 11:29:56 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-06-03 11:29:56 +0200 |
| commit | 85512dd3a782cf04520fe11b645de8e4ef42932d (patch) | |
| tree | 73e4bb006a3235f0e45c0b2b9b9fd777826355ed /include | |
| parent | 1c80b05e007340ed213e7f492b73631810e8aec4 (diff) | |
| download | PROJ-85512dd3a782cf04520fe11b645de8e4ef42932d.tar.gz PROJ-85512dd3a782cf04520fe11b645de8e4ef42932d.zip | |
proj_cleanup(): make sure it frees the database context of the default PJ_CONTEXT
Diffstat (limited to 'include')
| -rw-r--r-- | include/proj/internal/io_internal.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/proj/internal/io_internal.hpp b/include/proj/internal/io_internal.hpp index a57ca5ce..e0426b59 100644 --- a/include/proj/internal/io_internal.hpp +++ b/include/proj/internal/io_internal.hpp @@ -201,6 +201,8 @@ struct projCppContext { } NS_PROJ::io::DatabaseContextNNPtr getDatabaseContext(); + + void closeDb() { databaseContext_ = nullptr; } }; //! @endcond |
