~mir-team/qtmir/mir-0.17-compatibility

Viewing all changes in revision 382.

  • Committer: CI Train Bot
  • Author(s): Daniel d'Andrada
  • Date: 2015-09-30 10:08:30 UTC
  • mfrom: (379.1.3 textureCleanUp-lp1499388)
  • Revision ID: ci-train-bot@canonical.com-20150930100830-rlim5l8zubrb28xc
MirSurfaceItem: texture must be manipulated only from the scene graph thread

Do not delete the texture from within the GUI thread ever, even if the
MirSurfaceItem is no longer holding the MirSurface that provided it.
Otherwise you run the risk of having the scene graph thread dereferencing
a pointer to a texture that no longer exists.

This also fixes fd leak LP: #1495871 (which was a texture/buffer leak). Fixes: #1495871, #1499388
Approved by: Gerry Boland, PS Jenkins bot

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: