Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-2712

Warn when an object gets deleted inside a slot where the signal is that object

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • None
    • All Other Issues
    • None

    Description

      I don't know if that is feasible with the static analysis that creator has (I doubt it but since I recently saw a bug related to that maybe you can consider it. Creator could then suggest the usage of deleteLater().

      Scenario was:
      Code deleted a QLocalSocket in a slot connected to the QLocalSocket's readChannelFinished().
      Similar situations often arise with QNetworkReply and its finished() signal.

      Attachments

        Issue Links

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

          Activity

            People

              con Eike Ziller
              mgoetz Markus Goetz (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes