Fixed a major memory leak (whoops, lol) and made a simple refactor for finding adjacent portal groups.

git-svn-id: http://mancubus.net/svn/hosted/eternity/branches/portal-branch@2742 86ba831e-150c-0410-ab35-e06eaae15ed9