diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-06-07 11:42:13 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-06-07 11:45:45 (GMT) |
commit | e82d6264571604357b28ccb8d1b079c7eaf6ba71 (patch) | |
tree | 143c92ada3e00fd4e8534b999302af0de0de1c78 /src | |
parent | 91fa2c1beb79124db4a70a37e2224c1de9b9ded4 (diff) | |
download | Qt-e82d6264571604357b28ccb8d1b079c7eaf6ba71.zip Qt-e82d6264571604357b28ccb8d1b079c7eaf6ba71.tar.gz Qt-e82d6264571604357b28ccb8d1b079c7eaf6ba71.tar.bz2 |
remove somewhat misleading warning about x11 pixmap leak
the only situation where it would be actually true are broken drivers
(or a broken x server as a whole). qt is not the right place to worry
about that problem.
Reviewed-by: jbache
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/image/qpixmap_x11.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/image/qpixmap_x11.cpp b/src/gui/image/qpixmap_x11.cpp index 6bebefc..e8dc5ae 100644 --- a/src/gui/image/qpixmap_x11.cpp +++ b/src/gui/image/qpixmap_x11.cpp @@ -1250,10 +1250,8 @@ void QX11PixmapData::release() pengine = 0; if (!X11) { -#ifndef QT_NO_DEBUG - qWarning("~QX11PixmapData(): QPixmap objects must be destroyed before the QApplication" - " object, otherwise the native pixmap object will be leaked."); -#endif + // At this point, the X server will already have freed our resources, + // so there is nothing to do. return; } |