diff options
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-26 17:57:03 +0000 |
---|---|---|
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-26 17:57:03 +0000 |
commit | 1909e15a6d52e6c112d271b524c9239407ad9c54 (patch) | |
tree | 696bc20df439202bca5d819558a04c7950b0c1e7 /src | |
parent | fcb57b5570ec8b3176d4025d4c44d145591f819c (diff) |
In GrBatchedTextContext, use GrSafeSetNull(), for more safeness!
http://codereview.appspot.com/6326058/
git-svn-id: http://skia.googlecode.com/svn/trunk@4345 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrBatchedTextContext.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/GrBatchedTextContext.cpp b/src/gpu/GrBatchedTextContext.cpp index 666d894e04..e94bf3dd7d 100644 --- a/src/gpu/GrBatchedTextContext.cpp +++ b/src/gpu/GrBatchedTextContext.cpp @@ -49,8 +49,7 @@ void GrBatchedTextContext::reset() { fDrawTarget->resetVertexSource(); fMaxVertices = 0; fCurrVertex = 0; - fCurrTexture->unref(); - fCurrTexture = NULL; + GrSafeSetNull(fCurrTexture); } void GrBatchedTextContext::prepareForGlyph(GrTexture* texture) { |