From: Richard Bown <bownie@bo...> - 2003-05-23 08:42:44
I was following up on Silvan's memory leak thingy (730011) after I
managed to replicate it. The leak was at the gui and not at the
sequencer so I was looking at the wrong process - duh.
Anyway, the leak was being caused by repeated calls to
segment->fillWithRests on the recording segment in
RosegardenGUIDoc::insertRecordAudio. This function is called directly
from the sequencer pretty often and the fillWithRests call must've been
filling a mighty amount of rests in.
Actually looking at base/Segment you can see that a load of new rests
will be bunged into any segment that it's called on with no checking to
see if those rests already exist. Hence the leak. Anyway we don't
need to fill this segment with rests at all so I've just commented out
the call and things seem more stable.