diff options
author | Trond Kjernaasen <trond@trolltech.com> | 2009-05-12 17:22:33 +0200 |
---|---|---|
committer | Trond Kjernaasen <trond@trolltech.com> | 2009-05-12 17:27:54 +0200 |
commit | e58b7a29206bf81735ce45c964285de2e94ccc70 (patch) | |
tree | 8433dc722cba2afea0f30240c2504b38ba3bcc7f /src | |
parent | 64f86caef81ee0047fe28f0bc9c1d8a4ca606ebb (diff) | |
download | qt4-tools-e58b7a29206bf81735ce45c964285de2e94ccc70.tar.gz |
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')
-rw-r--r-- | src/gui/image/qpixmap_win.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qpixmap_win.cpp b/src/gui/image/qpixmap_win.cpp index 3ec441bd84..cbe9004d38 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; } |