summaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorDane Springmeyer <dane@mapbox.com>2019-08-15 14:02:26 -0700
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-08-16 15:51:42 +0300
commit1165f62df6dd344d83f88a6396cfba153e9271f3 (patch)
tree86e108b8b434619d77418d17874cd0298db0731b /test/src
parent0f34eb7b253e83b8c4aef7ed6c83cd7b3801fa4c (diff)
downloadqtlocation-mapboxgl-1165f62df6dd344d83f88a6396cfba153e9271f3.tar.gz
[core][test] fix leaks from sqlite usage
Diffstat (limited to 'test/src')
-rw-r--r--test/src/mbgl/test/sqlite3_test_fs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/src/mbgl/test/sqlite3_test_fs.cpp b/test/src/mbgl/test/sqlite3_test_fs.cpp
index e4f958c900..068ae9e1cf 100644
--- a/test/src/mbgl/test/sqlite3_test_fs.cpp
+++ b/test/src/mbgl/test/sqlite3_test_fs.cpp
@@ -278,6 +278,7 @@ SQLite3TestFS::~SQLite3TestFS() {
sqlite3_vfs* test_fs = sqlite3_vfs_find("test_fs");
if (test_fs) {
sqlite3_vfs_unregister(test_fs);
+ sqlite3_free((void*)test_fs);
}
}