[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: Thinking about large files.
From:       Adrian Page <adrian () pagenet ! plus ! com>
Date:       2005-06-19 22:27:34
Message-ID: 42B5F156.7050304 () pagenet ! plus ! com
[Download RAW message or body]

Casper Boemann wrote:
> On Monday 20 June 2005 00:11, Bart Coppens wrote:
> 
>>On Monday 20 June 2005 00:03, Casper Boemann wrote:
>>
>>>Explaind by this I would imagine:
>>>
>>>KisTransaction::~KisTransaction()
>>>{
>>> if (m_memento) {
>>>  // For debugging purposes
>>>  m_memento -> setInvalid();
>>> }
>>>}
>>
>>Ah, but the memento is not actually deleted, right? So all the tiles it
>>references to continue to exist?
> 
> Yes, it would sem so.
> Question is why. I would certainly think it would be ok to delete.

m_mememto is a shared pointer so the memento will automatically be 
deleted when the last reference is removed. The tile manager can hold 
another reference while the memento is being created. The lack of 
reference counting was the main reason for the undo/redo crashes.

You could put a kdDebug in the mememnto's destructor to see if they 
really do get destroyed.

Adrian
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic