mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Commit FS#10889: detect file handles leaks in plugins and automatically close them on exit and warn the user.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24598 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
552a54d87f
commit
e5caf93e23
2 changed files with 89 additions and 1 deletions
|
|
@ -908,5 +908,11 @@ Lyre prototype 1 */
|
|||
#define STORAGE_ALIGN_MASK 0
|
||||
#endif
|
||||
|
||||
/* This attribute can be used to enable to detection of plugin file handles leaks.
|
||||
* When enabled, the plugin core will monitor open/close/creat and when the plugin exits
|
||||
* will display an error message if the plugin leaked some file handles */
|
||||
#ifndef SIMULATOR
|
||||
#define HAVE_PLUGIN_CHECK_OPEN_CLOSE
|
||||
#endif
|
||||
|
||||
#endif /* __CONFIG_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue