broulik added a comment.
Would it make sense to wrap that in a `QScopedPointer` with a custom deleter that calls `XFree`? This way one does not need to remember calling it whenever the function is exited. REPOSITORY R102 KInfoCenter REVISION DETAIL https://phabricator.kde.org/D6566 To: madcatx Cc: broulik, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas