diff options
| author | snowman2 <alansnow21@gmail.com> | 2021-02-13 19:12:04 -0600 |
|---|---|---|
| committer | snowman2 <alansnow21@gmail.com> | 2021-02-13 19:14:29 -0600 |
| commit | 6353da92f1284f9a46e94ccc782278c259d69166 (patch) | |
| tree | 06d752c9f6432d0290c734db93fef05915d45ae6 /include | |
| parent | 32d442ddc69cbc159c75781f33c575ea5b11fc43 (diff) | |
| download | PROJ-6353da92f1284f9a46e94ccc782278c259d69166.tar.gz PROJ-6353da92f1284f9a46e94ccc782278c259d69166.zip | |
BUG: Close database connection if autoclose set to True
Diffstat (limited to 'include')
| -rw-r--r-- | include/proj/internal/io_internal.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/proj/internal/io_internal.hpp b/include/proj/internal/io_internal.hpp index 8f1c3d68..3187440f 100644 --- a/include/proj/internal/io_internal.hpp +++ b/include/proj/internal/io_internal.hpp @@ -201,7 +201,7 @@ struct projCppContext { return auxDbPaths_; } - void setAutoCloseDb(bool autoClose) { autoCloseDb_ = autoClose; } + void setAutoCloseDb(bool autoClose) { autoCloseDb_ = autoClose; autoCloseDbIfNeeded(); } inline bool getAutoCloseDb() const { return autoCloseDb_; } // cppcheck-suppress functionStatic |
