Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-53119

QPrinterInfo::supportedResolutions() for PDF printer - abort on free

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.6.0
    • GUI: Printing
    • None
    • Windows 7 x64

    Description

      On Windows, when the default printer is a PDF printer (CutePDF Writer) the following code will abort :

      QPrinterInfo prinfo(QPrinterInfo::defaultPrinter());
      QList<int> resolutions = prinfo.supportedResolutions();

      The abort happens in QListData::dispose() on the line :

      free(d);

      The stack at the moment of the abort is :

      QListData::dispose(d=0x07c59950) Line 166
      QList<int>::dealloc(data=0x07c59950) Line 857
      QList<int>::~QList<int>() Line 818

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            johnlayt John Layt
            harry_m Harry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes