https://bugs.kde.org/show_bug.cgi?id=495802

--- Comment #2 from FeepingCreature <default_357-l...@yahoo.de> ---
We worked around it on the Python side with this helper:
```

def acquire_elements(l: list[QOBJECT]) -> list[QOBJECT]:
    # Many Pykrita functions return a `QList<QObject*>` where the objects are
    # allocated for the callee. SIP does not handle this case and just leaks
    # the objects outright. Fix this by taking explicit ownership of the
objects.
    # Note: ONLY call this if you are confident that the Pykrita function
    # allocates the list members!
    for obj in l:
        if obj is not None:
            sip.transferback(obj)
    return l
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to