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

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Sep 7 20:02:44 UTC 2017


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

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|serval2412 at yahoo.fr         |

--- Comment #5 from Julien Nabet <serval2412 at yahoo.fr> ---
(In reply to Noel Grandin from comment #4)
> 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.

Sorry Noel, I don't know C++ enough to understand this mechanism.
It seems I can't do anything here, so let's uncc.

-- 
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/4b6f5160/attachment.html>


More information about the Libreoffice-bugs mailing list