Quoting Ralf Stephan <ralf@...748...>:
If I remember correctly, SPDesktop's destructor is currently responsible for withdrawing its canvas items as a side-effect
of
being freed. There should instead be a method for the widget
to
tell the desktop to do this explicitly before discarding it.
thanks. afaik it was helpful for #1291009.
Yeah, sort of ... I've since looked at the code and as far as withdrawing canvas items, it turns out that the calls to sp_item_invoke_show() and sp_item_invoke_hide() on the root element actually happen in one of SPDesktop's various "set document" methods -- SPDesktop::setDocument, I think... but the destructor was calling it indirectly...
[ note: this is from memory, function/method names may or may not be accurate ]
-mental