-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
5.5.0
-
None
-
Qt 5.5.0 for Windows 32-bit (VS 2010)
When the source of a QTextureImage is replaced, the old texture seems not to be freed. Therefore the memory consumption of the program rises with every new texture used. However, if a texture image has been used before the memory consumption doesn't rise when using the same texture a second time.
This behavior lead to problems, if the texture image is updated based on a video stream.
Enclosed you find an short example which demonstrates the problem. In the example the source of a TextureImage is replaced by a new texture every 2 Seconds. With every replacement of the texture source, the memory consumption of the program rises. After all 10 textures have been used once and are repeated, the memory consumption doesn't rise anymore.