Make sure we shut down cleanly

This commit is contained in:
Joshua Granick
2015-07-03 05:18:06 -07:00
parent 49e485480e
commit 1105b0fe4e
3 changed files with 23 additions and 20 deletions

View File

@@ -83,8 +83,8 @@ namespace lime {
}
lime::fseek (file, 0, SEEK_END);
int size = lime::ftell (file);
lime::fseek (file, 0, SEEK_SET);
if (size > 0) {
@@ -94,7 +94,6 @@ namespace lime {
}
lime::fclose (file);
delete file;
}