TrackEditor: dispose local variable in a finally block

All Dispose() calls should happen in finally blocks to avoid leaks
when exceptions happen, so we apply a using{} block here.

Signed-off-by: Andrés G. Aragoneses <knocte@gmail.com>