commit | 50e4ce05521b0d95890e894691819882113aae86 | [log] [tgz] |
---|---|---|
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Jun 19 15:27:50 2012 +0000 |
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Jun 19 15:27:50 2012 +0000 |
tree | 39e3902ea1191b1e2d7a56f8a02b78651c03b488 | |
parent | 2999f789c7e66a31066414f4b8fffb3148b677c5 [diff] [blame] |
Fix memory leaks. http://codereview.appspot.com/6301098/ git-svn-id: http://skia.googlecode.com/svn/trunk@4281 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/gpu/GrSamplerState.h b/include/gpu/GrSamplerState.h index f8ad1c0..1f81afa 100644 --- a/include/gpu/GrSamplerState.h +++ b/include/gpu/GrSamplerState.h
@@ -81,8 +81,7 @@ fSwapRAndB = s.fSwapRAndB; fTextureDomain = s.fTextureDomain; - fCustomStage = s.fCustomStage; - SkSafeRef(fCustomStage); + GrSafeAssign(fCustomStage, s.fCustomStage); return *this; }