9f8bfa348e
Motivation: Fixes an IllegalReferenceCountException Modification: Retained the buffers so the encoder works correctly. Result: Fixes #11357