hpereiradacosta added a comment.
> For the general case you are right. Unpolish is only called from QApplication::setStyle when the old style gets destroyed. On Application tear-down it's not called. To be honest, I am a bit uneasy about this change. Sounds somewhat like abusing the API (since you then call the method explicitly in kwin). What if people later on start adding other "destruction" stuff in unpolish, unaware that it is actually not called ? Maybe something cleaner would be to move everything from the destructor to unpolish (with proper reassignment to nullptr), and then call unpolish explicitely in the destructor. The whole thing with tons of comments/warning ? REPOSITORY rBREEZE Breeze REVISION DETAIL https://phabricator.kde.org/D3240 EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, #plasma, broulik, hpereiradacosta Cc: plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas