kossebau added a comment.
@vkrause : Any idea why I get `org.kde.ksyntaxhighlighting: Repository got deleted while a highlighter is still active!` with this code? The `KSyntaxHighlighting::SyntaxHighlighter` instance and the `QTextDocument` instance are both created on the stack in the scope of the method, while the `KSyntaxHighlighting::Repository` is a member of the class. Any idea why would a highlighter outlives the repoository, or what else would trigger that warning? REPOSITORY R320 KIO Extras REVISION DETAIL https://phabricator.kde.org/D19432 To: kossebau, broulik Cc: vkrause, cfeck, kde-frameworks-devel, kfm-devel, alexde, feverfew, michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, emmanuelp, mikesomov