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.
master
Andrzej Rybczak 17 years ago
parent 29f49415dd
commit 14a817e83e
  1. 3
      src/search_engine.cpp

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

Loading…
Cancel
Save