Ignore:
Timestamp:
Mar 8, 2010, 12:52:58 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.2 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/image/qpixmap_x11.cpp

    r561 r651  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    6969#include <private/qdrawhelper_p.h>
    7070#include <private/qimage_p.h>
     71#include <private/qimagepixmapcleanuphooks_p.h>
    7172
    7273#include <stdlib.h>
     
    12291230QX11PixmapData::~QX11PixmapData()
    12301231{
     1232    // Cleanup hooks have to be called before the handles are freed
     1233    if (is_cached) {
     1234        QImagePixmapCleanupHooks::executePixmapDataDestructionHooks(this);
     1235        is_cached = false;
     1236    }
     1237
    12311238    release();
    12321239}
     
    12371244    pengine = 0;
    12381245
    1239     if (!X11)
     1246    if (!X11) {
     1247#ifndef QT_NO_DEBUG
     1248        qWarning("~QX11PixmapData(): QPixmap objects must be destroyed before the QApplication"
     1249                 " object, otherwise the native pixmap object will be leaked.");
     1250#endif
    12401251        return;
     1252    }
    12411253
    12421254    if (x11_mask) {
Note: See TracChangeset for help on using the changeset viewer.