aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-11-02 11:48:43 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-11-02 11:48:43 -0700
commitc3f4bf7ab3fb1e7d4cf1fba400803c8ce1519345 (patch)
treeb26f65330f9be8638666c04a17239be612e649bb
parent86c2c0f0775b059c3eb27386d2f503b414ea91cf (diff)
Fix memory leak in https://skia-review.googlesource.com/c/4227/ (Back SkSpecialImage_Gpu with a GrTextureProxy)
-rw-r--r--src/gpu/GrTextureProxy.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/GrTextureProxy.cpp b/src/gpu/GrTextureProxy.cpp
index be09bd4024..9aae7057c4 100644
--- a/src/gpu/GrTextureProxy.cpp
+++ b/src/gpu/GrTextureProxy.cpp
@@ -65,8 +65,7 @@ sk_sp<GrTextureProxy> GrTextureProxy::Make(GrTextureProvider* texProvider,
size_t rowBytes) {
if (srcData) {
// If we have srcData, for now, we create a wrapped GrTextureProxy
- sk_sp<GrTexture> tex = sk_ref_sp(texProvider->createTexture(desc, budgeted,
- srcData, rowBytes));
+ sk_sp<GrTexture> tex(texProvider->createTexture(desc, budgeted, srcData, rowBytes));
return GrTextureProxy::Make(std::move(tex));
}