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

Fix QRenderCaptureReply deallocation

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 5.9.2
    • 5.9.0
    • Qt3D
    • None
    • 927cdc4bde6a152fcd0a64729946831477f27913

    Description

      Looks like there is a problem with the QRenderCaptureReply deallocation in certain cases. When passing QRenderCaptureReply from Qml to cpp side, there is no more reference to the object from qml side, and gc thinks it can free the object. The reply parent should be set when creating it to prevent this.

      Another problem is that there is no deallocation guard for the returned replies in the QRenderCapture, which means that if the client deallocates the reply before it is processed, QRenderCapure will try to use it when it gets processed and cause a crash.

      Attachments

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

        Activity

          People

            seanharmer Sean Harmer
            anmaatta Antti Määttä
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes