Review Request 118665: Avoid invalid read in ShadowHelper destructor

Aurélien Gâteau agateau at kde.org
Wed Jun 11 11:13:13 UTC 2014


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

Review request for Plasma.


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/20140611/b77a898e/attachment.html>


More information about the Plasma-devel mailing list