forked from qt-creator/qt-creator
Don't leak PortListPrivate.
Change-Id: I8ad9a3a3224eb07ebc7d58aa92f1d0194eb57569 Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user