summaryrefslogtreecommitdiffstats
path: root/src/gui/styles
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-06-21 11:48:55 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-06-21 11:58:15 (GMT)
commite4d59c1bd1ac43b65ed8b14d41ab488b8e3782bf (patch)
treef2a0e5b8bb71ce655e8e63321679ccd932979cdf /src/gui/styles
parent9af06ac8c7e86b236a571e1560ecd8f234bb2a67 (diff)
downloadQt-e4d59c1bd1ac43b65ed8b14d41ab488b8e3782bf.zip
Qt-e4d59c1bd1ac43b65ed8b14d41ab488b8e3782bf.tar.gz
Qt-e4d59c1bd1ac43b65ed8b14d41ab488b8e3782bf.tar.bz2
Fix for a leak in the mac style.
Task-number: QTBUG-11550 Reviewed-by: Morten Sørvig
Diffstat (limited to 'src/gui/styles')
-rw-r--r--src/gui/styles/qmacstyle_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm
index f029602..d18383c 100644
--- a/src/gui/styles/qmacstyle_mac.mm
+++ b/src/gui/styles/qmacstyle_mac.mm
@@ -1808,7 +1808,7 @@ void qt_mac_fill_background(QPainter *painter, const QRegion &rgn, const QBrush
painter->setClipRegion(rgn);
- CGContextRef cg = qt_mac_cg_context(target);
+ QCFType<CGContextRef> cg = qt_mac_cg_context(target);
CGContextSaveGState(cg);
HIThemeSetFill(kThemeBrushDialogBackgroundActive, 0, cg, kHIThemeOrientationInverted);