Fix for memory leak of input frames in encoder.


This should fix this bug - https://bugzilla.mozilla.org/show_bug.cgi?id=1032492
Review here - https://rbcommons.com/s/OpenH264/r/576/

We were often returning without freeing the memory of the input frame.