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:
Andrzej Rybczak
2009-03-09 11:09:13 +01:00
parent 29f49415dd
commit 14a817e83e

View File

@@ -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)