aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrSamplerState.h
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-19 15:27:50 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-19 15:27:50 +0000
commit50e4ce05521b0d95890e894691819882113aae86 (patch)
tree39e3902ea1191b1e2d7a56f8a02b78651c03b488 /include/gpu/GrSamplerState.h
parent2999f789c7e66a31066414f4b8fffb3148b677c5 (diff)
Fix memory leaks.
Diffstat (limited to 'include/gpu/GrSamplerState.h')
-rw-r--r--include/gpu/GrSamplerState.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/gpu/GrSamplerState.h b/include/gpu/GrSamplerState.h
index f8ad1c0715..1f81afad5e 100644
--- a/include/gpu/GrSamplerState.h
+++ b/include/gpu/GrSamplerState.h
@@ -81,8 +81,7 @@ public:
fSwapRAndB = s.fSwapRAndB;
fTextureDomain = s.fTextureDomain;
- fCustomStage = s.fCustomStage;
- SkSafeRef(fCustomStage);
+ GrSafeAssign(fCustomStage, s.fCustomStage);
return *this;
}