I noticed on the bugs list that Ted Felix found and fixed a nasty bug with
Segment being dereferenced after it's deleted (Ironically, as a debugging
help).  Good work, Ted.

The fix is surrounded by stern warnings not to dereference the dead
pointer, because unavoidably, it's still there.  But it actually might be
avoidable.  Segment is now a QObject, so it emits the signal "destroyed"
just before it is destroyed.  You could connect that signal to
CompositionMapper and do CompositionMapper::removeSegment before the
segment is actually freed, if you think it's worth doing.

I'm working on another branch right now, with some edits in
CompositionMapper that eventually I'll have to merge with this.  If you
(Ted) could let me know what you end up deciding, I'd appreciate it.

Thanks for the fix.

        Tom Breton (Tehom)



------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to