matroskaenc: Make sure the seekhead struct is freed even on seek failure
authorMartin Storsjö <martin@martin.st>
Mon, 7 Nov 2011 19:06:01 +0000 (21:06 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 7 Nov 2011 20:23:17 +0000 (22:23 +0200)
commit44729bc0204fd8bdc29c234fc663229e44420b09
treeb00ffd85ecae01f8d17b9204a6412a05a99951e9
parent090aaaf75280ed42a5e5c7424c366d5b6bab8dde
matroskaenc: Make sure the seekhead struct is freed even on seek failure

The caller expects the seekhead struct to be freed when calling
matroska_write_seekhead. Currently, the structure is leaked if the
seek fails.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/matroskaenc.c