Review Request 119088: powerdevil - don't leak job pointer in brightness control
Mark Gaiser
markg85 at gmail.com
Wed Jul 2 19:06:00 BST 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119088/#review61505
-----------------------------------------------------------
May i suggest to replace those new lines with a QScopedPointer (documentation for it: http://qt-project.org/doc/qt-5/qscopedpointer.html) objects? It kinda takes away the need for you to delete since it will simply run out of scope (and be deleted).
Or go the C++11 way and use std::unique_ptr: http://en.cppreference.com/w/cpp/memory/unique_ptr
- Mark Gaiser
On July 2, 2014, 6:02 p.m., Martin Bříza wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119088/
> -----------------------------------------------------------
>
> (Updated July 2, 2014, 6:02 p.m.)
>
>
> Review request for kde-workspace.
>
>
> Repository: kde-workspace
>
>
> Description
> -------
>
> Fixes a memory leak in backlight control with upower. Probably fixes https://bugs.kde.org/show_bug.cgi?id=271934 .
>
>
> Diffs
> -----
>
> powerdevil/daemon/backends/upower/powerdevilupowerbackend.cpp d38a28f
>
> Diff: https://git.reviewboard.kde.org/r/119088/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Martin Bříza
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20140702/7602547e/attachment.htm>
More information about the kde-core-devel
mailing list