Make these stack variables & fix one memory leak with the undo object.
Make these stack variables & fix one memory leak with the undo object.

Change-Id: I1dd2bf0fc843394502119928c921913131c86f7e

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core