https://bugs.freedesktop.org/show_bug.cgi?id=55974

--- Comment #15 from Michael Meeks <[email protected]> ---
The widgets are deleted by this (fairly obvious) recursive delete on the
top-level.

==7216==    at 0x4C279DC: operator delete(void*) (vg_replace_malloc.c:457)
==7216==    by 0xA0FA2AB: ScrollBar::~ScrollBar() (scrbar.cxx:157)
==7216==    by 0x8E1F1D3: VCLXDevice::DestroyOutputDevice() (vclxdevice.cxx:56)
==7216==    by 0x8E66F69: VCLXWindow::dispose() (vclxwindow.cxx:957)
==7216==    by 0x8E8C28B: VCLXScrollBar::dispose() (vclxwindows.cxx:3365)
==7216==    by 0x9001D30: UnoWrapper::WindowDestroyed(Window*)
(unowrapper.cxx:263)
==7216==    by 0xA56F779: Window::~Window() (window.cxx:4329)
==7216==    by 0xA51EFEB: SystemWindow::~SystemWindow() (syswin.cxx:85)
==7216==    by 0xA598248: WorkWindow::~WorkWindow() (wrkwin.cxx:142)
==7216==    by 0xA59829B: WorkWindow::~WorkWindow() (wrkwin.cxx:150)
==7216==    by 0x2D5FCC0B: void boost::checked_delete<WorkWindow>(WorkWindow*)
(checked_delete.hpp:34)
==7216==    by 0x2D5FF541:
boost::detail::sp_counted_impl_p<WorkWindow>::dispose()
(sp_counted_impl.hpp:78)
==7216==    by 0x2D3EA43B: boost::detail::sp_counted_base::release()
(sp_counted_base_gcc_x86.hpp:145)
==7216==    by 0x2D3EA4CA: boost::detail::shared_count::~shared_count()
(shared_count.hpp:217)
==7216==    by 0x2D5F98FB: boost::shared_ptr<Window>::~shared_ptr()
(shared_ptr.hpp:168)
==7216==    by 0x2D5F6AF0: sd::framework::BasicViewFactory::~BasicViewFactory()
(BasicViewFactory.cxx:143)
==7216==    by 0x2D5F6BD1: sd::framework::BasicViewFactory::~BasicViewFactory()
(BasicViewFactory.cxx:145)


Somehow we need to add a 'dispose' method to the SlideSorter (I guess) and
ensure that the top-level impress window is calling dispose on it's child
SlideSorter object, and that that is called first (I guess).

What a horror :-) and all because VCL doesn't use a sane reference-counting
lifecycle model.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to