diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qevent_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent_p.h b/src/gui/kernel/qevent_p.h index 2a481fb..47082d1 100644 --- a/src/gui/kernel/qevent_p.h +++ b/src/gui/kernel/qevent_p.h @@ -103,6 +103,8 @@ public: { QTouchEventTouchPointPrivate *d = new QTouchEventTouchPointPrivate(*this); d->ref = 1; + if (!this->ref.deref()) + delete this; return d; } |