Close file if error occurs in GFileWriteAll(char* filepath, char *data)
Merge pull request #732 from JoesCat/master

Close file if error occurs in GFileWriteAll(char* filepath, char *data)