Skip to content

Commit bd23176

Browse files
committed
Reset VFS file closing to use the close()-method again
1 parent f7bbf99 commit bd23176

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/vfs/gdsqlite_file.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ int gdsqlite_file::close(sqlite3_file *pFile)
1010
gdsqlite_file *p = reinterpret_cast<gdsqlite_file *>(pFile);
1111
ERR_FAIL_COND_V(!p->file->is_open(), SQLITE_IOERR_CLOSE);
1212

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();
13+
p->file->close();
1614
p->file.unref();
1715

1816
return SQLITE_OK;

0 commit comments

Comments
 (0)