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. 1
      src/search_engine.cpp

@ -589,6 +589,7 @@ void SearchEngine::Search()
found = copy.GetComment() == s.GetComment(); found = copy.GetComment() == s.GetComment();
} }
if (CaseSensitive || MatchToPattern)
copy.NullMe(); copy.NullMe();
(*it)->CopyPtr(0); (*it)->CopyPtr(0);

Loading…
Cancel
Save