From c9e836a02eda005758d3c1b047ad5ed25498f816 Mon Sep 17 00:00:00 2001 From: Jean-François Milants Date: Sat, 15 Oct 2022 16:52:55 +0200 Subject: G7710 and Infineat : close the files after having verified that they exist. --- src/displayapp/screens/WatchFaceInfineat.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/displayapp/screens/WatchFaceInfineat.cpp') 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; } -- cgit v1.2.3-70-g09d2