Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 242d212f772475d2ca13760d7af8b03e9cd98386
https://github.com/WebKit/WebKit/commit/242d212f772475d2ca13760d7af8b03e9cd98386
Author: Sihui Liu <[email protected]>
Date: 2025-10-22 (Wed, 22 Oct 2025)
Changed paths:
M Source/WebCore/platform/sql/SQLiteDatabase.cpp
M Source/WebCore/platform/sql/SQLiteDatabase.h
Log Message:
-----------
Replace sqlite3_close with sqlite3_close_v2
https://bugs.webkit.org/show_bug.cgi?id=301253
rdar://163168512
Reviewed by Per Arne Vollan.
sqlite3_close_v2() never fails and it doesn't require all statements to be
manually finalized first -- it automatically
defers cleanup until resources are freed. This helps prevent resource leaks
compared to sqlite3_close (which requires
manual cleanup if the call fails).
This patch also removes an unused function in SQLiteDatabase.
* Source/WebCore/platform/sql/SQLiteDatabase.cpp:
(WebCore::SQLiteDatabase::open):
(WebCore::SQLiteDatabase::close):
(WebCore::WTF_GUARDED_BY_LOCK): Deleted.
(WebCore::SQLiteDatabase::setIsDatabaseOpeningForbidden): Deleted.
* Source/WebCore/platform/sql/SQLiteDatabase.h:
Canonical link: https://commits.webkit.org/301962@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications