Fixed an order-of-operations bug that was leading to a double free in the ffmpeg decoder. Also patched up a memory leak -- we weren't completely freeing the formatContext.
Fixed an order-of-operations bug that was leading to a double free in
the ffmpeg decoder. Also patched up a memory leak -- we weren't
completely freeing the formatContext.

clangen/musikcube,onnerby/musikcube,clangen/musikcube,onnerby/musikcube,onnerby/musikcube,onnerby/musikcube,clangen/musikcube,clangen/musikcube,onnerby/musikcube,clangen/musikcube,clangen/musikcube,clangen/musikcube,clangen/musikcube