We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7bbf99 commit bd23176Copy full SHA for bd23176
src/vfs/gdsqlite_file.cpp
@@ -10,9 +10,7 @@ int gdsqlite_file::close(sqlite3_file *pFile)
10
gdsqlite_file *p = reinterpret_cast<gdsqlite_file *>(pFile);
11
ERR_FAIL_COND_V(!p->file->is_open(), SQLITE_IOERR_CLOSE);
12
13
- /* FileAccess is now reference counted and shouldn't be closed manually anymore */
14
- /* Instead, for safety's sake, we call the flush method such that the buffer is written to the disk */
15
- p->file->flush();
+ p->file->close();
16
p->file.unref();
17
18
return SQLITE_OK;
0 commit comments