fix memory leak
This commit is contained in:
parent
273fbe24f4
commit
73626e9f45
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue