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

Possible memory-leak through QCocoaEventDispatcherPrivate::temporarilyStopModalSession

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.2.0
    • 5.1.0
    • GUI: Window management
    • None
    • 68563cdabd3b9ff1f9ebba98f700ea70e085ded8

    Description

      The CCocoaEventDispatcher keeps a list of currently active sessions via cocoaModalSessionStack. This stucture connects (amoung other) an NSWindow * (QCocoaModalSessionInfo.nswindow) with an NSModalSession * (QCocoaModalSessionInfo.session).
      When a session is created the corresponding nswindow is retained (see

      {QCocoaEventDispatcherPrivate::currentModalSession()}

      ) and latter (when the sessions are finally destroyed) retained (see

      {QCocoaEventDispatcherPrivate::cleanupModalSession()}

      ).
      However, is is possible to "temporarily" destroy all modal session via QCocoaEventDispatcherPrivate::temporarilyStopModalSession() let them recreate via

      {QCocoaEventDispatcherPrivate::currentModalSession()}

      . In this case an additional retain-call is executed on the nswindow, which is not outbalanced by an release-call.
      Except i miss something.

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            sdochow@magix.net sebastian dochow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes