diff options
| author | 2014-10-27 15:26:20 +0100 | |
|---|---|---|
| committer | 2014-10-27 15:26:20 +0100 | |
| commit | 3a3ff949670c61a4a8856e1391222e156eb1cd17 (patch) | |
| tree | fd8023fefa4829ceea428ec424608ef9aace1d9a /src/modules/extra/m_sqlite3.cpp | |
| parent | m_ssl_openssl Store a pointer to the OpenSSLIOHook object in SSL objects (diff) | |
| parent | Release v2.0.18 (diff) | |
Merge insp20
Diffstat (limited to 'src/modules/extra/m_sqlite3.cpp')
| -rw-r--r-- | src/modules/extra/m_sqlite3.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/extra/m_sqlite3.cpp b/src/modules/extra/m_sqlite3.cpp index f86e08fb3..e5c8f600a 100644 --- a/src/modules/extra/m_sqlite3.cpp +++ b/src/modules/extra/m_sqlite3.cpp @@ -98,8 +98,11 @@ class SQLConn : public SQLProvider ~SQLConn() { - sqlite3_interrupt(conn); - sqlite3_close(conn); + if (conn) + { + sqlite3_interrupt(conn); + sqlite3_close(conn); + } } void Query(SQLQuery* query, const std::string& q) |
