Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1248)

Unified Diff: gm/coloremoji.cpp

Issue 817083002: fix leak (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/coloremoji.cpp
diff --git a/gm/coloremoji.cpp b/gm/coloremoji.cpp
index 9782dd82a015cac695fc246fa4b3e6f1d9898623..cc794f005e7b40d5369eb6fe249aa2df6e85cec3 100644
--- a/gm/coloremoji.cpp
+++ b/gm/coloremoji.cpp
@@ -100,7 +100,7 @@ protected:
SkPaint shaderPaint;
shaderPaint.setTypeface(fTypeface);
if (SkToBool(i)) {
- shaderPaint.setShader(MakeLinear());
+ shaderPaint.setShader(MakeLinear())->unref();
}
if (SkToBool(j) && SkToBool(k)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698