addon extended resource accounting
fix memory leak in loadMedia
fix memory leak on sound shutdown