[Tdbc] Fix UpdateHookCallback released issue (#5528)
authorChangGyu Choi <changyu.choi@samsung.com>
Thu, 12 Oct 2023 00:13:23 +0000 (09:13 +0900)
committerGitHub <noreply@github.com>
Thu, 12 Oct 2023 00:13:23 +0000 (09:13 +0900)
commitb7950e875f91cdc4b0c50d6106f138ae5b438e92
tree566542f2ddb7f1295a3a9f0b53e27c3f8f449979
parent781fa26376c3fed146d536173ebe8094fb80ebfa
[Tdbc] Fix UpdateHookCallback released issue (#5528)

The issue is that if you don't keep a reference to the UpdateHookCallback,
it may be garbage collected before it is used.

UpdateHookCallback should be referenced during used this.

Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Co-authored-by: pjh9216 <jh9216.park@samsung.com>
src/Tizen.Data.Tdbc.Driver.Sqlite/Tizen.Data.Tdbc.Driver.Sqlite/Connection.cs