Instead of adding the missing g_free() call on search_query we now check the search mode status directly with thunar_path_entry_get_search_mode().
g_free()
thunar_path_entry_get_search_mode()
Amends: a18726a5