~zsombi/ubuntu-ui-toolkit/screenDprChange

Viewing all changes in revision 1613.

  • Committer: Tarmac
  • Author(s): Albert Astals Cid
  • Date: 2015-08-19 11:13:08 UTC
  • mfrom: (1612.1.1 staging)
  • Revision ID: tarmac-20150819111308-u1635s07bo66mb5h
Properly free shapeTextures[index]

The old code assumes that the UbuntuShape will still be around when the opengl context is destroyed, but that seldom happens so connect the signal to a lambda that will be there and does the cleanup properly

Without this patch testDirectionalDragArea from unity8 was hitting the qFatal because it ran out of space in shapeTextures.

Approved by Zsombor Egri, PS Jenkins bot.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: