Review Request 118665: Avoid invalid read in ShadowHelper destructor

Aurélien Gâteau agateau at kde.org
Thu Jun 19 14:30:51 UTC 2014


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

(Updated June 19, 2014, 2:30 p.m.)


Status
------

This change has been marked as submitted.


Review request for Plasma and Hugo Pereira Da Costa.


Repository: oxygen


Description
-------

Valgrind pointed out ~ShadowHelper uses _helper, but at the time ~ShadowHelper is called, _helper has already been deleted. Deleting ShadowHelper manually works around this problem. I also have an alternative patch which turns _helper into a QSharedPointer, which I can submit instead, but the changes are much more invasive.


Diffs
-----

  kstyle/oxygenstyle.cpp 972e4c8 

Diff: https://git.reviewboard.kde.org/r/118665/diff/


Testing
-------

Running "valgrind kcmshell5 desktop" does not print any error about invalid reads in ~ShadowHelper anymore.


Thanks,

Aurélien Gâteau

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140619/4f2237df/attachment-0001.html>


More information about the Plasma-devel mailing list