Skip to content
Snippets Groups Projects
Commit f213907c authored by Frederik Gladhorn's avatar Frederik Gladhorn
Browse files

Don't leak PortListPrivate.


Change-Id: I8ad9a3a3224eb07ebc7d58aa92f1d0194eb57569
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@nokia.com>
parent 28844621
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment