Delete QPlatformDragPrivate object in QPlatformDrag's destructor

Change-Id: Ib722df14123b24ca044f6e0846aa1435c7e0e201
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
bb10
jian liang 2012-03-02 00:07:49 +08:00 committed by Qt by Nokia
parent cdc9422c2e
commit 86dd454461
2 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,7 @@ QPlatformDrag::QPlatformDrag() : d_ptr(new QPlatformDragPrivate)
QPlatformDrag::~QPlatformDrag()
{
delete d_ptr;
}
QDrag *QPlatformDrag::currentDrag() const

View File

@ -100,6 +100,8 @@ public:
private:
QPlatformDragPrivate *d_ptr;
Q_DISABLE_COPY(QPlatformDrag)
};
QT_END_NAMESPACE