Fixed a url history memory leak.