From 85512dd3a782cf04520fe11b645de8e4ef42932d Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 3 Jun 2021 11:29:56 +0200 Subject: proj_cleanup(): make sure it frees the database context of the default PJ_CONTEXT --- include/proj/internal/io_internal.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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 -- cgit v1.2.3