Acly / krita-ai-diffusion

Streamlined interface for generating images with AI in Krita. Inpaint and outpaint with optional text prompt, no tweaking required.
https://www.interstice.cloud
GNU General Public License v3.0
6.96k stars 342 forks source link

Work around PyQt memory leak on the Krita::documents() method. #1359

Closed FeepingCreature closed 2 weeks ago

FeepingCreature commented 2 weeks ago

documents() is specified as QList<Document *> documents() const /Factory/; in Krita.sip. This means that the QList is cleaned up (/Factory/), but as Document* is very generic SIP has no idea what to do with them and they just leak.