Fix some memory leak related to g_file_new_for_path.
Minor style fixes.
Merge pull request #128 from TurboGit/fix-memory-leak

Fix minor memory leak