summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2017-04-27 18:00:46 +0200
committerJesus Fernandez <Jesus.Fernandez@qt.io>2017-04-27 16:40:17 +0000
commit0803285fe7e6bca32eac77e88a2cb1f47a308865 (patch)
tree297550f0e65f649ae72bb77346849ce2687ae363 /src
parent5dbd040d1c77936b5fb3584cdfac829904d76b2c (diff)
Fix resource leak
CID 178811 (#1 of 1): Resource leak (RESOURCE_LEAK) 25. leaked_storage: Variable dptr going out of scope leaks the storage it points to. Change-Id: I3354fe46cfb08701f387f65aaaa5c4f235079501 Coverity-Id: 178811 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/xcb/nativepainting/qpixmap_x11.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/xcb/nativepainting/qpixmap_x11.cpp b/src/plugins/platforms/xcb/nativepainting/qpixmap_x11.cpp
index 6f970f6d6d..08752da648 100644
--- a/src/plugins/platforms/xcb/nativepainting/qpixmap_x11.cpp
+++ b/src/plugins/platforms/xcb/nativepainting/qpixmap_x11.cpp
@@ -1549,6 +1549,7 @@ QPixmap QX11PlatformPixmap::transformed(const QTransform &transform, Qt::Transfo
if (!qt_xForm_helper(mat, xi->xoffset, type, bpp, dptr, xbpl, p_inc, h, sptr, sbpl, ws, hs)){
qWarning("QPixmap::transform: display not supported (bpp=%d)",bpp);
QPixmap pm;
+ free(dptr);
return pm;
}