summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/WatchFaceInfineat.cpp
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2022-10-15 16:52:55 +0200
committerJean-François Milants <jf@codingfield.com>2022-10-15 16:52:55 +0200
commitc9e836a02eda005758d3c1b047ad5ed25498f816 (patch)
treeb9986ba399c8985c9c4cbce713b2dd7140fec325 /src/displayapp/screens/WatchFaceInfineat.cpp
parenteb0af22ecf66957b9341521990c49a6d1d5d70e3 (diff)
G7710 and Infineat : close the files after having verified that they exist.
Diffstat (limited to 'src/displayapp/screens/WatchFaceInfineat.cpp')
-rw-r--r--src/displayapp/screens/WatchFaceInfineat.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/displayapp/screens/WatchFaceInfineat.cpp b/src/displayapp/screens/WatchFaceInfineat.cpp
index 01b425da..bd4e4ac8 100644
--- a/src/displayapp/screens/WatchFaceInfineat.cpp
+++ b/src/displayapp/screens/WatchFaceInfineat.cpp
@@ -617,13 +617,16 @@ bool WatchFaceInfineat::IsAvailable(Pinetime::Controllers::FS& filesystem) {
return false;
}
+ filesystem.FileClose(&file);
if (filesystem.FileOpen(&file, "/fonts/bebas.bin", LFS_O_RDONLY) < 0) {
return false;
}
+ filesystem.FileClose(&file);
if (filesystem.FileOpen(&file, "/images/pine_small.bin", LFS_O_RDONLY) < 0) {
return false;
}
+ filesystem.FileClose(&file);
return true;
}