Skip to content

search-engine-recent: make sure we ref self before each idle and don't start multiple threads

Marco Trevisan requested to merge 3v1n0/nautilus:recent-search-ref-fix into master

Always ref self engine in case we fire a new search_add_hits_idle, otherwise we'll wrongly unref it in the idle callback. This happens when skipping the search engine because recursive search is not enabled.

Similar thing was done in commit 3eecada7, but that might have caused a leak in case an idle was already set up.

Edited by Marco Trevisan

Merge request reports