diff --git a/src/plugins/remotelinux/portlist.cpp b/src/plugins/remotelinux/portlist.cpp index a9a2703b631..587dd6f8122 100644 --- a/src/plugins/remotelinux/portlist.cpp +++ b/src/plugins/remotelinux/portlist.cpp @@ -143,6 +143,11 @@ PortList::PortList(const PortList &other) : d(new Internal::PortListPrivate(*oth { } +PortList::~PortList() +{ + delete d; +} + PortList &PortList::operator=(const PortList &other) { *d = *other.d; diff --git a/src/plugins/remotelinux/portlist.h b/src/plugins/remotelinux/portlist.h index 60425b0eccd..869f80bb7e8 100644 --- a/src/plugins/remotelinux/portlist.h +++ b/src/plugins/remotelinux/portlist.h @@ -47,6 +47,7 @@ public: PortList(); PortList(const PortList &other); PortList &operator=(const PortList &other); + ~PortList(); void addPort(int port); void addRange(int startPort, int endPort);