Directory: remove method Free()
This commit is contained in:
@@ -251,7 +251,7 @@ ProxyDatabase::Open(Error &error)
|
||||
void
|
||||
ProxyDatabase::Close()
|
||||
{
|
||||
root->Free();
|
||||
delete root;
|
||||
|
||||
if (connection != nullptr)
|
||||
mpd_connection_free(connection);
|
||||
|
||||
@@ -168,7 +168,7 @@ SimpleDatabase::Open(Error &error)
|
||||
#endif
|
||||
|
||||
if (!Load(error)) {
|
||||
root->Free();
|
||||
delete root;
|
||||
|
||||
LogError(error);
|
||||
error.Clear();
|
||||
@@ -188,7 +188,7 @@ SimpleDatabase::Close()
|
||||
assert(root != nullptr);
|
||||
assert(borrowed_song_count == 0);
|
||||
|
||||
root->Free();
|
||||
delete root;
|
||||
}
|
||||
|
||||
Song *
|
||||
|
||||
Reference in New Issue
Block a user