[PySide] QPixmap memory leak

Florian Bruhin me at the-compiler.org
Fri Jan 15 06:11:36 CET 2016


* Hannu Tatein <htatein123 at gmail.com> [2016-01-14 16:57:38 -0500]:
> Hi Pyside Experts,

I'm by no means a PySide expert (hell, I never used it :P) but let me
share my thoughts anyways ;)

> Is there any way to avoid the memory leak? I tried QtGui.QPixmap.deref()
> before the first image, it does seem to work.

Have you tried to do self.pixmap.deleteLater() when you're done with
it?

Maybe it works with the same image due to Qt's implicit data sharing:
http://doc.qt.io/qt-4.8/implicit-sharing.html

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20160115/1c27ded8/attachment.sig>


More information about the PySide mailing list