undo/redo in c++ android memory leak : i am developing an finger painting app on android. I implemented this finger painting in c++ together with page curling. The finger painting works well but i want to know if there is any memory leak on my undoPen and redoPen methods code. It has to be done with raw pointers. I have added the useful part of the code only.
    
				vector<vector<*mPath>>MAIN(12);
				vector<*mPath> undoMain(0);
				int PageNo = 0;
				void Pen::onFingerDown(float x1, float y1)
				{
					undoMain.clear();
				 
				  MAIN[PageNo].push_back(move(path));
					mx = x1;
					my = y1;
					tempPoints.x1=x1;
					tempPoints.y1=y1;
					tempPoints.x2=x1;
					tempPoints.y2=y1;
				   // points.push_back(tempPoints);
					path->addVert(tempPoints);


				}

				void Pen::onFingerMove(float x, float y)
				{
					tempPoints.x1=mx;
					tempPoints.y1=my;
					tempPoints.x2=x;
					tempPoints.y2=y;
					path->addVert(tempPoints);

				   // path->addColor(tempColors);
				   // points.push_back(tempPoints);

					mx=x;
					 my=y;
					//LOG_INFO("LOOOOOL");
				}

				void Pen::onFingerUp()
				{
				path = new mPath();
				}

				void Pen::undoPen(){
				if(MAIN[PageNo].size()>0){
					undoMain.push_back(move(*MAIN[PageNo].erase(MAIN[PageNo].end()-1)));

				}

				}
				void Pen::redoPen() {
					if(undoMain.size()>0){
						MAIN[PageNo].push_back(move(*undoMain.erase(undoMain.end()-1)));
						
						////
					}
				}
	
Thanks for your help.