fixed file descriptor leaks in radio tools (#6748)
This commit is contained in:
committed by
Bertrand Songis
parent
8a1f7a2b97
commit
bb1c2b072b
@@ -116,6 +116,7 @@ void menuRadioTools(event_t event)
|
||||
if (isRadioScriptTool(fno.fname))
|
||||
addRadioScriptTool(index++, path);
|
||||
}
|
||||
f_closedir(&dir);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -124,4 +125,4 @@ void menuRadioTools(event_t event)
|
||||
}
|
||||
|
||||
reusableBuffer.radioTools.linesCount = index;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user