encoder: fix invalid free of raw buffers am: 3e73f0d562

Original change: https://googleplex-android-review.googlesource.com/c/platform/external/libavc/+/14392080

Change-Id: Ib72ea7316073631d5c2bf0dd350bcb0f3e487386