This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10889 - Close leaked filehandles on plugin exit
Attached to Project:
Rockbox
Opened by Frank Gevaerts (fg) - Saturday, 02 January 2010, 17:46 GMT+2
Last edited by Frank Gevaerts (fg) - Thursday, 11 February 2010, 20:21 GMT+2
Opened by Frank Gevaerts (fg) - Saturday, 02 January 2010, 17:46 GMT+2
Last edited by Frank Gevaerts (fg) - Thursday, 11 February 2010, 20:21 GMT+2
|
DetailsThis patch makes plugin.c check for leaked file handles, and closes them if needed.
It can of course be trivially changed to panic instead. On arm, there's a binsize cost of about 256 bytes. Not actually tested yet. |
This task depends upon
Closed by Frank Gevaerts (fg)
Thursday, 11 February 2010, 20:21 GMT+2
Reason for closing: Accepted
Additional comments about closing: committed as r24598
Thursday, 11 February 2010, 20:21 GMT+2
Reason for closing: Accepted
Additional comments about closing: committed as r24598
Also wipe out wrappers if not needed and add a yesno dialog to inform the user to report the problem.
- I don't think any source file should have LOGF_ENABLE by default.
- Unifying the logf and GUI message strings should save some binsize. Not sure if it's worth it though.
- Shouldn't the GUI messages be translated?
-add translation support
-remove LOGF_ENABLE
-reuse an existing translation instead of a new one and had a little text (it could be change to an error number for example)