析构函数的运行原理的问题

问题遇到的现象和发生背景

析构函数析构了哪三次?不懂析构函数怎么运行的

问题相关代码,请勿粘贴截图
 #include<iostream>
using namespace std;
class Point {    
public:    
    Point(int xx = 0, int yy = 0) {x=xx; y=yy;}
    Point(Point &p);
    ~Point() {cout << "The destructor is called " << endl;}
    int getX() {  return x;    }
    int getY() {  return y;    }
private:
    int x, y;
};
Point::Point(Point &p) {
    x = p.x;    y = p.y;
}
void fun1(Point p) { cout << p.getY() << endl;  } 
int main() {
    Point a(7, 8);    
    Point b(a);    
    cout << b.getX() << endl;
    fun1(b);    
    return 0;
} 
运行结果及报错内容

7
8
The destructor is called
The destructor is called
The destructor is called

我的解答思路和尝试过的方法
我想要达到的结果

第一次是函数fun1(Point p) 运行结束时析构p
第二次是main结束时析构b
第三次是运行结束析构a