jpegdec: fix frame leaks in handle_frame() implementation