changed unecessary memory allocation in polyData2R.cpp