From 5fdbc2e878898ae4314426414382aa8a8c7f2eac Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Fri, 29 Jan 2010 11:56:13 +0100 Subject: Initialize member variables in QStaticTextPrivate constructor Avoid crash when copying a QStaticTextPrivate object --- src/gui/text/qstatictext.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/text/qstatictext.cpp b/src/gui/text/qstatictext.cpp index db10a03..3f26eb3 100644 --- a/src/gui/text/qstatictext.cpp +++ b/src/gui/text/qstatictext.cpp @@ -276,6 +276,7 @@ QStaticTextPrivate::QStaticTextPrivate() } QStaticTextPrivate::QStaticTextPrivate(const QStaticTextPrivate &other) + : items(0), itemCount(0), glyphPool(0), positionPool(0), needsClipRect(false) { ref = 1; text = other.text; -- cgit v0.12