Issue 117083 - document window leaks framework::WindowCommandDispatch instance
Summary: document window leaks framework::WindowCommandDispatch instance
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: DEV300m100
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-25 15:48 UTC by Stephan Bergmann
Modified: 2013-01-29 21:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Stephan Bergmann 2011-02-25 15:48:03 UTC
At least on DEV300_m101 based CWS sb140, unxlngx6 non-pro, running soffice under valgrind --leak-check=full with an org.openofice.test.OfficeConnection-based test that simply calls OfficeConnection.setUp() immediately followed by OfficeConnection.tearDown(), valgrind reports

264 (136 direct, 128 indirect) bytes in 1 blocks are definitely lost in loss record 3,944 of 4,878
   at 0x4C27878: malloc (vg_replace_malloc.c:236)
   by 0x4E9B7CC: rtl_allocateMemory (in opt/openoffice.org/ure/lib/libuno_sal.so.3)
   by 0x1C093812: framework::Frame::initialize(com::sun::star::uno::Reference<com::sun::star::awt::XWindow> const&) (framework/source/services/frame.cxx:631)
   by 0x1C0A9E7C: framework::TaskCreatorService::implts_createFrame(com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&, com::sun::star::uno::Reference<com::sun::star::awt::XWindow> const&, rtl::OUString const&) (in opt/openoffice.org/basis3.4/program/libfwklx.so)
   by 0x1C0AB1DE: framework::TaskCreatorService::createInstanceWithArguments(com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) (in opt/openoffice.org/basis3.4/program/libfwklx.so)
   by 0x1C018EDD: framework::TaskCreator::createTask(rtl::OUString const&, unsigned char) (in opt/openoffice.org/basis3.4/program/libfwklx.so)
   by 0x1C08AE29: framework::Desktop::findFrame(rtl::OUString const&, int) (in opt/openoffice.org/basis3.4/program/libfwklx.so)
   by 0x527DE3C: desktop::Desktop::Main() (in opt/openoffice.org/basis3.4/program/libsofficeapp.so)
   by 0x99220AB: ImplSVMain() (in opt/openoffice.org/basis3.4/program/libvcllx.so)
   by 0x99221E6: SVMain() (in opt/openoffice.org/basis3.4/program/libvcllx.so)
   by 0x52A8077: soffice_main (in opt/openoffice.org/basis3.4/program/libsofficeapp.so)
   by 0x401192: sal_main (in opt/openoffice.org3/program/soffice.bin)
   by 0x401177: main (in opt/openoffice.org3/program/soffice.bin)

every document window leaks a framework::WindowCommandDispatch instance; "create WindowCommandDispatch; it is supposed to release itself at frame destruction" (framework/source/services/frame.cxx:630) and "So we register us at the XWindow as event listener also to be sure to live as long the XWindow/VCLWindow lives." (framework/source/inc/dispatch/windowcommanddispatch.hxx:72) are not true
Comment 1 Oliver-Rainer Wittmann 2012-06-13 12:15:47 UTC
getting rid of value "enhancement" for field "severity".
For enhancement the field "issue type" shall be used.