Review Request 128319: Fix memory leaks in the properties dialog

David Faure faure at kde.org
Wed Jun 29 14:44:29 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128319/#review96958
-----------------------------------------------------------




src/widgets/kpropertiesdialog.cpp (line 825)
<https://git.reviewboard.kde.org/r/128319/#comment65514>

    This line, here, reparents the frame to the properties dialog. There is no leak.


- David Faure


On June 29, 2016, 2:38 p.m., Elvis Angelaccio wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128319/
> -----------------------------------------------------------
> 
> (Updated June 29, 2016, 2:38 p.m.)
> 
> 
> Review request for KDE Frameworks and David Faure.
> 
> 
> Repository: kio
> 
> 
> Description
> -------
> 
> I noticed these leaks while working on RR 128283. All the existing plugins create the `m_frame` widget without a parent: `d->m_frame = new QFrame();`
> 
> This widget is used as parent for many other widgets, but it's never deleted and so there is a fairly amount of memory never released to the OS.
> 
> 
> Diffs
> -----
> 
>   src/widgets/kpropertiesdialog.cpp d0a2faa5114e391680925e10646ce7c6f2ea29da 
> 
> Diff: https://git.reviewboard.kde.org/r/128319/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Elvis Angelaccio
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20160629/9c5e580a/attachment.html>


More information about the Kde-frameworks-devel mailing list