[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: Re: [Kde-pim] occasional crashes, bug in DetailledPrintStyle d'tor?
From: Tobias Koenig <tokoe () kde ! org>
Date: 2002-09-05 22:17:38
[Download RAW message or body]
On Thu, Sep 05, 2002 at 10:02:31PM +0200, Jost Schenck wrote:
> Hi,
Hi Jost,
> I stumbled over weird behavior of kaddressbook that often occurred after
> printing (sometimes a crash, sometimes some other abnormal termination with
> lt-kaddressbook staying in memory, sometimes freezing). It normally does not
> show up right after printing the first time, but after the second or third
> time.
>
> I noticed the following in the destructor of DetailledPrintStyle:
>
> DetailledPrintStyle::~DetailledPrintStyle()
> {
> // we have to delete the pages manually, since they are
> // created as children of the wizard, that is, they are not
> // deleted when the print style object is:
> delete mPageAppearance;
> if(mEPntr!=0) delete mEPntr;
> }
I've committed a small fix, that set both pointers to 0 now. It seems
to work, but concerning the double deletion Mirko should comment on it.
Ciao,
Tobias
--
In a world without walls and fences who
needs Windows and Gates???
_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic