diff options
author | bsalomon <bsalomon@google.com> | 2015-11-11 12:40:42 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-11 12:40:42 -0800 |
commit | 67d7620285cdfa60158add6615db03bd48e6d8b0 (patch) | |
tree | cc658c120433b59378beff7ad1d1ec495878153e /tests | |
parent | a13e202563979fd5076936606dcc1d660da8c632 (diff) |
Fix leaks in unit tests of GrGLTextureInfos
TBR=egdaniel@google.com
Review URL: https://codereview.chromium.org/1433353005
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ResourceCacheTest.cpp | 3 | ||||
-rw-r--r-- | tests/SurfaceTest.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp index c33af9f302..08d3678073 100644 --- a/tests/ResourceCacheTest.cpp +++ b/tests/ResourceCacheTest.cpp @@ -221,7 +221,8 @@ static void test_wrapped_resources(skiatest::Reporter* reporter, GrContext* cont REPORTER_ASSERT(reporter, borrowedIsAlive); REPORTER_ASSERT(reporter, !adoptedIsAlive); - gpu->deleteTestingOnlyBackendTexture(texHandles[0]); + gpu->deleteTestingOnlyBackendTexture(texHandles[0], !borrowedIsAlive); + gpu->deleteTestingOnlyBackendTexture(texHandles[1], !adoptedIsAlive); context->resetContext(); } diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp index a3b79813f7..a6739e3308 100644 --- a/tests/SurfaceTest.cpp +++ b/tests/SurfaceTest.cpp @@ -169,6 +169,8 @@ static void test_wrapped_texture_surface(skiatest::Reporter* reporter, GrContext } } } + gpu->deleteTestingOnlyBackendTexture(texHandle); + } #endif |