Make all FLV memory management go through a single function - further robustifies FLV library.