[Libreoffice-bugs] [Bug 112254] CuiAboutConfigTabPage::InsertEntry leaks memory

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Sep 7 19:47:31 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=112254

--- Comment #4 from Noel Grandin <noelgrandin at gmail.com> ---
probably the easiest fix is to define a custom subclass of SvTreeListEntry that
delete's the UserData in it's destructor.
something like
  class MyListEntry : public SvTreeListEntry{
  public:
    ~MyListEntry() { delete static_cast<UserData>(GetUserData()); }
  }
unless the ownership of UserData is more complicated.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170907/b20a4917/attachment.html>


More information about the Libreoffice-bugs mailing list