The getter function generated with CppGenerator::writeGetterFunction when
the function local variable newWrapperSameObject is true creates a new wrapper
object on every call, resulting in memory leak
The following code demonstrates memory leak in accessing the `format` property of QtGui.QTextEdit.ExtraSelection objects.
The issue is that in the generated function `Sbk_QTextEdit_ExtraSelection_get_format` a new wrapper object is created on every access in the following line:
`PyObject* pyOut = Shiboken::Object::newObject((SbkObjectType*)SbkPySide_QtGuiTypes[SBK_QTEXTCHARFORMAT_IDX], &(cppSelf->format), false, true);`
I think a solution would be to first check if a binding for the cppField is already registered and return the binding in that case instead of creating new binding.