Skip to content

Commit

Permalink
steamcompmgr: Fix leak wrt. loading custom 3D + Shaper LUTs
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkautarch authored Feb 27, 2024
1 parent a5ad6e3 commit 441a0ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/steamcompmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ bool set_color_3dlut_override(const char *path)
if (!f) {
return true;
}
defer( fclose(f) );

fseek(f, 0, SEEK_END);
long fsize = ftell(f);
Expand Down Expand Up @@ -631,6 +632,7 @@ bool set_color_shaperlut_override(const char *path)
if (!f) {
return true;
}
defer( fclose(f) );

fseek(f, 0, SEEK_END);
long fsize = ftell(f);
Expand Down

0 comments on commit 441a0ba

Please sign in to comment.