Skip to content

Commit

Permalink
Fix incorrect usage of file closing
Browse files Browse the repository at this point in the history
  • Loading branch information
Paril committed Dec 12, 2021
1 parent bf21847 commit 5718a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/refresh/images.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ static void make_screenshot_hdr(const char *name)
ret = stbi_write_hdr_to_func(stbi_write, fp, w, h, 3, pixels);
FS_FreeTempMem(pixels);

FS_FCloseFile(fp);
fclose(fp);

if (ret < 0) {
Com_EPrintf("Couldn't write %s: %s\n", buffer, Q_ErrorString(ret));
Expand Down

0 comments on commit 5718a28

Please sign in to comment.