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

iOS: Memory leak in QPlatformClipboard

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.4.0 Beta
    • 5.4.0 Alpha
    • QPA
    • None
    • iOS/tvOS/watchOS
    • 65c542b

    Description

      There are two memory leaks in the mime data handling in QClipboard on iOS.

      The first is in QIOSPlatformClipboard::mimeData(). This is expected to return a pointer to internal memory which is managed by the clipboard, but on iOS it just returns new objects every time and these are never deleted.

      The second is in QIOPlatformClipbard::setMimeData(). This is documented to take ownership of the QMimeData object, but on iOS it only fetches the data from the object and returns without deleting it.

      Attachments

        Activity

          People

            richard Richard Moe Gustavsen
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: