Fixed leaking devices when disposing of injectors.