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

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes