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

Memory leak in QClipboard:.setMimeData()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.4.0 Beta
    • 5.4.0 Alpha
    • Core: Other
    • None
    • 74a20b77a67ec4d5a8be0f59302075d34151dc05

    Description

      In QClipboard::setMimeData(), when the platform does not support the mode passed in, we just return without any feedback to the application. However, the documentation says that the function takes ownership of the data passed in, which means it needs to delete this object before returning, otherwise we will introduce a leak.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes