sqlite_modern_cpp icon indicating copy to clipboard operation
sqlite_modern_cpp copied to clipboard

Fix crash in static database destruction due to unsafe lambda capture

Open amoskahiga opened this issue 7 months ago • 0 comments

Crash would occur at exit when a static shared_ptr object was destroyed due to capturing local variables by value using [=] in the shared_ptr's custom deleter lambda. The deleter doesn't use any captured variables so use an empty clause instead.

amoskahiga avatar May 22 '25 01:05 amoskahiga