aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-26 17:57:03 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-26 17:57:03 +0000
commit1909e15a6d52e6c112d271b524c9239407ad9c54 (patch)
tree696bc20df439202bca5d819558a04c7950b0c1e7 /src
parentfcb57b5570ec8b3176d4025d4c44d145591f819c (diff)
In GrBatchedTextContext, use GrSafeSetNull(), for more safeness!
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrBatchedTextContext.cpp3
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) {