[Differential] [Requested Changes To] D2449: small utility to create L&F packages

davidedmundson (David Edmundson) noreply at phabricator.kde.org
Tue Aug 16 12:59:07 UTC 2016


davidedmundson requested changes to this revision.
davidedmundson added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> lnflogic.cpp:92
>              emit messageRequested(ErrorLevel::Error, i18n("Cannot retrieve the current Plasma layout."));
> +            delete watcher;
>              return;

watcher->deleteLater();

because:

1. you should never delete a QObject in a slot. You crash if something else is connected to the same signal

2. you only need one line then at the top. Otherwise you crash if used after free.

REPOSITORY
  rPLASMASDK Plasma SDK

REVISION DETAIL
  https://phabricator.kde.org/D2449

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: mart, davidedmundson, #plasma
Cc: davidedmundson, plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160816/5f2ac44b/attachment.html>


More information about the Plasma-devel mailing list