Review Request 127326: [KNotification] KNofication remove leak and missing emit closed
Anthony Fieroni
bvbfan at abv.bg
Thu Mar 10 14:24:26 UTC 2016
> On Март 10, 2016, 3:56 след обяд, Martin Klapetek wrote:
> > Can you please explain clearly the problem this should solve and explain more clearly how this solves that problem?
> >
> > Also I see with your every review "I have not tested this", please do test your patches before posting them.
Looks like my English is really bad :)
auto n = new KNotification;
n->close(); <--------------- ref = 0, closed() is not emitted, deleteLater() is not called => leak
- Anthony
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127326/#review93387
-----------------------------------------------------------
On Март 10, 2016, 11:28 преди обяд, Anthony Fieroni wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127326/
> -----------------------------------------------------------
>
> (Updated Март 10, 2016, 11:28 преди обяд)
>
>
> Review request for KDE Frameworks, Kai Uwe Broulik, David Edmundson, and Martin Klapetek.
>
>
> Repository: knotifications
>
>
> Description
> -------
>
> If KNotification is not notified, he don't ref() notification, if call close() on it cause a leak, emu closed() is not triggered.
> https://git.reviewboard.kde.org/r/127318/
>
>
> Diffs
> -----
>
> src/knotification.cpp 17b0be2
>
> Diff: https://git.reviewboard.kde.org/r/127326/diff/
>
>
> Testing
> -------
>
> No real test, just blame me if i'm not right.
>
>
> Thanks,
>
> Anthony Fieroni
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20160310/6132323a/attachment.html>
More information about the Kde-frameworks-devel
mailing list