mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-13 08:32:52 +01:00
Fix memory leak in Database::BackupFile
This commit is contained in:
parent
2657b80adb
commit
2885bc99ca
@ -649,7 +649,7 @@ void Database::BackupFile(const QString &filename) {
|
||||
sqlite3 *source_connection = nullptr;
|
||||
sqlite3 *dest_connection = nullptr;
|
||||
|
||||
BOOST_SCOPE_EXIT((source_connection)(dest_connection)(task_id)(app_)) {
|
||||
BOOST_SCOPE_EXIT((&source_connection)(&dest_connection)(task_id)(app_)) {
|
||||
// Harmless to call sqlite3_close() with a nullptr pointer.
|
||||
sqlite3_close(source_connection);
|
||||
sqlite3_close(dest_connection);
|
||||
|
Loading…
Reference in New Issue
Block a user