michael@0: diff --git a/media/libtheora/lib/state.c b/media/libtheora/lib/state.c michael@0: --- a/media/libtheora/lib/state.c michael@0: +++ b/media/libtheora/lib/state.c michael@0: @@ -583,17 +583,17 @@ static int oc_state_ref_bufs_init(oc_the michael@0: ref_frame_szfrag_buf_offs= michael@0: _ogg_malloc(_state->nfrags*sizeof(*frag_buf_offs)); michael@0: if(ref_frame_data==NULL||frag_buf_offs==NULL){ michael@0: _ogg_free(frag_buf_offs); michael@0: - _ogg_free(ref_frame_data); michael@0: + oc_aligned_free(ref_frame_data); michael@0: return TH_EFAULT; michael@0: } michael@0: /*Set up the width, height and stride for the image buffers.*/ michael@0: _state->ref_frame_bufs[0][0].width=info->frame_width; michael@0: _state->ref_frame_bufs[0][0].height=info->frame_height; michael@0: _state->ref_frame_bufs[0][0].stride=yhstride; michael@0: _state->ref_frame_bufs[0][1].width=_state->ref_frame_bufs[0][2].width= michael@0: info->frame_width>>hdec;