From 95b0f7bcca126483f7a336a16763b00e6ab8a7d1 Mon Sep 17 00:00:00 2001 From: Pyry Haulos Date: Tue, 30 Sep 2014 14:11:47 -0700 Subject: [PATCH] Fix sync object leak in ES3.1 debug tests. Change-Id: Ie38485b1f7415b2aade30d02d0006a128f9ac9c9 --- modules/gles31/functional/es31fNegativeStateApiTests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gles31/functional/es31fNegativeStateApiTests.cpp b/modules/gles31/functional/es31fNegativeStateApiTests.cpp index 46945a9..53a42b9 100644 --- a/modules/gles31/functional/es31fNegativeStateApiTests.cpp +++ b/modules/gles31/functional/es31fNegativeStateApiTests.cpp @@ -1057,6 +1057,8 @@ void get_synciv (NegativeTestContext& ctx) ctx.glGetSynciv (sync, -1, 32, &length, &values[0]); ctx.expectError (GL_INVALID_ENUM); ctx.endSection(); + + ctx.glDeleteSync(sync); } // Enumerated boolean state queries -- 2.7.4