diff options
author | robertphillips <robertphillips@google.com> | 2016-11-02 11:48:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-02 11:48:43 -0700 |
commit | c3f4bf7ab3fb1e7d4cf1fba400803c8ce1519345 (patch) | |
tree | b26f65330f9be8638666c04a17239be612e649bb | |
parent | 86c2c0f0775b059c3eb27386d2f503b414ea91cf (diff) |
Fix memory leak in https://skia-review.googlesource.com/c/4227/ (Back SkSpecialImage_Gpu with a GrTextureProxy)
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2472703005
Review-Url: https://codereview.chromium.org/2472703005
-rw-r--r-- | src/gpu/GrTextureProxy.cpp | 3 |
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)); } |