matroskaenc: fix memory leak