mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
fix memory leak
This commit is contained in:
@ -38,7 +38,9 @@ static FILE* melon_fopen(const char* path, const char* mode)
|
|||||||
fatmode[2] = mode[2];
|
fatmode[2] = mode[2];
|
||||||
fatmode[3] = 0;
|
fatmode[3] = 0;
|
||||||
|
|
||||||
return _wfopen(fatass, fatmode);
|
FILE* ret = _wfopen(fatass, fatmode);
|
||||||
|
delete[] fatass;
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user