Fix potential HLS leakage in mythtranscode, found by Coverity

Fixes 'Resource Leak' Coverity IDs 1025906, 1025907, and 1025908 along
with a few other potential resource leaks of similar nature regarding
HLS and the AVFormatWriters it uses in transcode.cpp.