fix memory leak

This commit is contained in:
StapleButter 2017-10-11 00:40:56 +02:00
parent 273fbe24f4
commit 73626e9f45
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ static FILE* melon_fopen(const char* path, const char* mode)
fatmode[2] = mode[2];
fatmode[3] = 0;
return _wfopen(fatass, fatmode);
FILE* ret = _wfopen(fatass, fatmode);
delete[] fatass;
return ret;
}
#else