Fix issue where items aren't looped, hence a closed connection, cannot be freed.

git-svn-id: https://svn.code.sf.net/p/freeghost/code/trunk@2561 71f96598-fa45-0410-b640-bcd6f8691b32
Check if the free function exists (except on the laoding of the data) so things will still run properly if there isn't any data to retrieve.


git-svn-id: https://svn.code.sf.net/p/freeghost/code/trunk@2562 71f96598-fa45-0410-b640-bcd6f8691b32
Merge svn with dev-branch