diff --git a/src/melon_fopen.h b/src/melon_fopen.h index 2541f84f..603e15f2 100644 --- a/src/melon_fopen.h +++ b/src/melon_fopen.h @@ -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