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

macOS clipboard setMimeData memory leak

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.5.3
    • GUI: Drag and Drop
    • None
    • macOS 15.4.1 (24E263) Apple M4 Pro
    • macOS

    Description

       

                   auto clipboard = QApplication::clipboard();

                  QScopedPointer<QMimeData> mime_data( new QMimeData());

                  mime_data->setImageData(image);

                  if (set_path)

                 

      {                 QByteArray pathData =  image_path.toUtf8();                 mime_data->setData(IMAGE_PATH,pathData );             }

                  clipboard->setMimeData(mime_data.take());

      use instruments to collect allocation information it seens there is memory leak problem in setMimeData function.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            maoliangwu peipei xu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes