@@ -321,6 +321,7 @@
        delete buffer_view_;
        delete cursor_;
        // Completer has a QObject parent and is thus automatically destroyed.
+       // See #4758.
        // delete completer_;
 }
Now I see, Completer doesn't have a QObject in real life:

GuiCompleter::GuiCompleter(GuiWorkArea * gui, QObject * parent = 0)
   : QCompleter(parent)

and

GuiWorkArea::GuiWorkArea(QWidget *)
    : completer_(new GuiCompleter(this))

So, the parent of GuiCompleter is always 0.

Vincent

Reply via email to