Don't leak PortListPrivate.

Change-Id: I8ad9a3a3224eb07ebc7d58aa92f1d0194eb57569
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
Frederik Gladhorn
2011-12-14 12:05:23 +01:00
parent 28844621e4
commit f213907c80
2 changed files with 6 additions and 0 deletions

View File

@@ -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;

View File

@@ -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);