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:
Amaury Pouly 2010-02-11 19:15:37 +00:00
parent 552a54d87f
commit e5caf93e23
2 changed files with 89 additions and 1 deletions

View file

@ -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__ */