plugins: port to new memory API
6 files changed