Fixing potential memory leak; updating Adapters submodule.