history-dialog: fix memory corruption
Since converting the history dialog from the hosts table to the URLs table, we have been using the wrong free function here. :/
Bonus commit: "history-dialog: be careful not to leak self->urls"
Edited by Michael Catanzaro