Fixed memleak in autocompleter