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

iOS: Memory leak in QPlatformClipboard

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes