@paule32.jk , You miss handling QChar
https://doc.qt.io/qt-6/qchar.html
It is not class like all others with constructor and destructor, it is simple 2 bytes type with methods, something like WChar in pascal with record helper, or simply a managed record that have only WChar/Char.
No need to delete it, unless you will declare it as referenced (aka dynamic).
In other words, if origin_obj (
https://github.com/paule32/fpc-qt/bl...har.cc#L10-L16 ) is local field, then you don't need to delete and you can't delete.