diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/melon_fopen.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/melon_fopen.h b/src/melon_fopen.h index 2541f84..603e15f 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 |