Fixing GTK crash when scanning hosts.
Merge pull request #195 from eaescob/master

Fix for GTK crash when scanning hosts.