Commit 110be07
committed
make sure Close always removes the runtime finalizer
This commit fixes a bug in {SQLiteConn,SQLiteStmt}.Close that would lead
to the runtime finalizer not being removed if there was an error closing
the connection or statement. This commit also makes it safe to call
SQLiteConn.Close multiple times.1 parent ab13d63 commit 110be07
1 file changed
+15
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1782 | 1782 | | |
1783 | 1783 | | |
1784 | 1784 | | |
1785 | | - | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
1786 | 1792 | | |
1787 | 1793 | | |
1788 | | - | |
| 1794 | + | |
1789 | 1795 | | |
1790 | 1796 | | |
1791 | | - | |
1792 | 1797 | | |
1793 | | - | |
1794 | | - | |
1795 | | - | |
1796 | | - | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
1800 | | - | |
1801 | | - | |
1802 | | - | |
1803 | | - | |
1804 | | - | |
| 1798 | + | |
1805 | 1799 | | |
1806 | 1800 | | |
1807 | 1801 | | |
| |||
1901 | 1895 | | |
1902 | 1896 | | |
1903 | 1897 | | |
1904 | | - | |
1905 | | - | |
1906 | | - | |
1907 | | - | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
1908 | 1901 | | |
| 1902 | + | |
| 1903 | + | |
1909 | 1904 | | |
1910 | | - | |
| 1905 | + | |
1911 | 1906 | | |
1912 | | - | |
1913 | | - | |
1914 | 1907 | | |
1915 | 1908 | | |
1916 | 1909 | | |
| |||
0 commit comments