Fix multiple resource leaks in new srgb_texture_decode tests
authorMark Adams <marka@nvidia.com>
Fri, 17 Feb 2017 19:14:18 +0000 (14:14 -0500)
committerPyry Haulos <phaulos@google.com>
Tue, 21 Feb 2017 16:03:47 +0000 (08:03 -0800)
commitac1e4ff92f8293af704ac32076eb1f4fc1d71810
treee7caa82554d45f1f04de163846bdd53f13294c63
parentfc868645e28ce37954bd5d5baeb8b0da80248d5e
Fix multiple resource leaks in new srgb_texture_decode tests

There were multiple issues here, ranging from never freeing resources,
to overwriting resources, to only freeing them at class destruction
instead of deinit time. This was resulting in hitting OOM on platforms
without tons of memory.

Bug: 35457323
Change-Id: I492177bb9e71bdbc7efc9d3a7c8a34bef35c709e
modules/gles31/functional/es31fSRGBDecodeTests.cpp