Your suggestion would work, if the objects need to be explicitly disposed.
If they don't, my code should be used instead. In the meantime, I made some
tests, and dispite I am not 100% sure, I believe they don't need to be
explicitly disposed, so my code would work. I would like to know these for
sure. If you or someone, could confirm this, I would be appreciated.