[prev in list] [next in list] [prev in thread] [next in thread]
List: quanta-devel
Subject: Re: [quanta-devel] Strange delete
From: "Andras Mantia" <amantia () kdewebdev ! org>
Date: 2005-05-05 7:57:12
Message-ID: 36490.80.86.125.193.1115279832.squirrel () mail ! kdewebdev ! org
[Download RAW message or body]
> Hi,
>
> I'm in the process of adding drag&drop into the structure tree and I'm
> having
> a crash. I noticed that is because the tag of a node is null pointer.
> I investigated and found that this happens in NodeModif::setNode, called
> by
> kafkaCommon::extractNode:
>
> if(viewManager && viewManager->activeDocument()
> && !viewManager->activeDocument()->docUndoRedo->turnedOn())
> {
> //FIXME: Andras: I don't have the slightest idea what this is supposed
> to
> do and what the
> //below comment means, but without a real delete we are seriously
> leaking
> memory
> m_node = 0L;
> delete node;
> return;
> }
>
> NodeModif::setNode is actually deleting the node. Can somebody explain me
> this? Is "!viewManager->activeDocument()->docUndoRedo->turnedOn()" not
> supposed to happen?
As I said, I don't have the slightest idea. ;-)
Andras
_______________________________________________
quanta-devel mailing list
quanta-devel@kde.org
https://mail.kde.org/mailman/listinfo/quanta-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic