fix memory leak in search engine
while performing case insensitive and exact match searching Song was really copied, so clearing its internal mpd_Song ptr resulted in memleak.
This commit is contained in:
@@ -589,7 +589,8 @@ void SearchEngine::Search()
|
||||
found = copy.GetComment() == s.GetComment();
|
||||
}
|
||||
|
||||
copy.NullMe();
|
||||
if (CaseSensitive || MatchToPattern)
|
||||
copy.NullMe();
|
||||
(*it)->CopyPtr(0);
|
||||
|
||||
if (found && any_found)
|
||||
|
||||
Reference in New Issue
Block a user