- 
    Bug 
- 
    Resolution: Fixed
- 
    P1: Critical 
- 
    1.1.2, 1.2.2
- 
    win7x64
 python-3.2 win32
 PySide-1.1.2 win32
 PIL-1.1.7.win32-py3.2.exe (unofficial for py3 http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil)
 Ubuntu 14.04 x64
 python-3.4
 PySide-1.2.2-git
 
- 
        b8201a3ad2e778ed58cb285369055dc4d0d450bd
QImage(data,size1,size2,format) contructor seem to occupy memory, but put in combination wil PIL.Image.tostring() this memory is never freed.
I put the constructor in a loop and found the following:
if data is always the same, there is no increase in memory, if data != data(t+1), then it increases really fast.
Please take a look at the code in attachement, containing these situations, and all the code needed to reproduce the bug (reproduced on 2 different computers).
ps: I posted the issue on stackoverflow, here: http://stackoverflow.com/questions/14716850/pil-to-qimage-conversion-qimage-constructor-does-not-free-memory