Free motion vector array before re-allocating

Change-Id: I0c39136d67e1e83020d61f86b062a04182ec9b00
Merge "Free motion vector array before re-allocating"