diff options
| author | Ray <[email protected]> | 2021-03-14 14:14:31 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-14 14:14:31 +0100 |
| commit | 1afd56dbf66b72783599fd1134a402387e02ad26 (patch) | |
| tree | c6625fb40a7a961ace39a300d4686e6516f6e407 /src | |
| parent | f9b79403d1142d61ea0ed6f41456600bb06a7318 (diff) | |
| download | raylib-1afd56dbf66b72783599fd1134a402387e02ad26.tar.gz raylib-1afd56dbf66b72783599fd1134a402387e02ad26.zip | |
Use UnloadFileData()
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2713,7 +2713,7 @@ bool SaveStorageValue(unsigned int position, int value) dataPtr[position] = value; success = SaveFileData(path, fileData, dataSize); - RL_FREE(fileData); + UnloadFileData(fileData); } #endif @@ -2752,7 +2752,7 @@ int LoadStorageValue(unsigned int position) value = dataPtr[position]; } - RL_FREE(fileData); + UnloadFileData(fileData); } #endif return value; |
