summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmap_win.cpp
diff options
context:
space:
mode:
authorTrond Kjernaasen <trond@trolltech.com>2009-05-12 15:22:33 (GMT)
committerTrond Kjernaasen <trond@trolltech.com>2009-05-12 15:27:54 (GMT)
commite58b7a29206bf81735ce45c964285de2e94ccc70 (patch)
tree8433dc722cba2afea0f30240c2504b38ba3bcc7f /src/gui/image/qpixmap_win.cpp
parent64f86caef81ee0047fe28f0bc9c1d8a4ca606ebb (diff)
downloadQt-e58b7a29206bf81735ce45c964285de2e94ccc70.zip
Qt-e58b7a29206bf81735ce45c964285de2e94ccc70.tar.gz
Qt-e58b7a29206bf81735ce45c964285de2e94ccc70.tar.bz2
Fixed a memory leak that occured when loading system icons on Windows.
There was a qFree() call missing. Task-number: related to 253367 Reviewed-by: jbache
Diffstat (limited to 'src/gui/image/qpixmap_win.cpp')
-rw-r--r--src/gui/image/qpixmap_win.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qpixmap_win.cpp b/src/gui/image/qpixmap_win.cpp
index 3ec441b..cbe9004 100644
--- a/src/gui/image/qpixmap_win.cpp
+++ b/src/gui/image/qpixmap_win.cpp
@@ -319,6 +319,7 @@ static QImage qt_fromWinHBITMAP(HDC hdc, HBITMAP bitmap, int w, int h)
} else {
qWarning("qt_fromWinHBITMAP(), failed to get bitmap bits");
}
+ qFree(data);
return image;
}