- Fix resize crash by holding a class reference to the filtergraph

- Unify cleanup code
- Ensure that DS COM references were only released once