summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qstylesheetstyle_p.h
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2010-04-21 07:29:15 (GMT)
committerJoerg Bornemann <joerg.bornemann@nokia.com>2010-04-21 08:30:37 (GMT)
commit78a0cf9c347b80e7d7b1eb369d8ff28c49ed1b7d (patch)
tree027ccedaefb0241105ebcfe93e0c410fac048d07 /src/gui/styles/qstylesheetstyle_p.h
parentf6d816ffe37ac74d29a7423683d4e046a3906b74 (diff)
downloadQt-78a0cf9c347b80e7d7b1eb369d8ff28c49ed1b7d.zip
Qt-78a0cf9c347b80e7d7b1eb369d8ff28c49ed1b7d.tar.gz
Qt-78a0cf9c347b80e7d7b1eb369d8ff28c49ed1b7d.tar.bz2
QStyleSheetStyle: fix memory leak on base style change
On every change of the base style it is inserted into styleSheetCache. If the base style gets destroyed, it must be removed from the cache. Task-number: QTBUG-4074 Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/styles/qstylesheetstyle_p.h')
-rw-r--r--src/gui/styles/qstylesheetstyle_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/styles/qstylesheetstyle_p.h b/src/gui/styles/qstylesheetstyle_p.h
index 50abef9..fd81437 100644
--- a/src/gui/styles/qstylesheetstyle_p.h
+++ b/src/gui/styles/qstylesheetstyle_p.h
@@ -147,6 +147,7 @@ protected:
private Q_SLOTS:
void widgetDestroyed(QObject *);
+ void styleDestroyed(QObject *);
private:
int refcount;