summaryrefslogtreecommitdiff
path: root/tests/util
diff options
context:
space:
mode:
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>2019-06-11 13:45:34 +0300
committerYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>2019-07-02 18:44:34 +0300
commitb40102e4c31c85217b706045f16938b9e35caa46 (patch)
treeacd781f6ad831a79c42c881f257a64f095b0fd45 /tests/util
parent1b7fa1941a6fa3386ba871edf08a34d990cb13bf (diff)
tests/ext_frame_buffer_multisample: Release memory allocated by Test
Adds Test class destructor, that releases memory allocated for test pattern and manifest program. Also frees memory allocated for test object itself. Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Diffstat (limited to 'tests/util')
-rw-r--r--tests/util/piglit-test-pattern.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/util/piglit-test-pattern.h b/tests/util/piglit-test-pattern.h
index 0ccf350c7..c2cf85776 100644
--- a/tests/util/piglit-test-pattern.h
+++ b/tests/util/piglit-test-pattern.h
@@ -40,6 +40,8 @@ namespace piglit_util_test_pattern
class ManifestProgram
{
public:
+ virtual ~ManifestProgram() {};
+
virtual void compile() = 0;
virtual void run() = 0;
};
@@ -98,6 +100,8 @@ namespace piglit_util_test_pattern
class TestPattern
{
public:
+ virtual ~TestPattern() {};
+
virtual void compile() = 0;
/**