Index: src/gpu/gl/GrGLExtensions.cpp |
diff --git a/src/gpu/gl/GrGLExtensions.cpp b/src/gpu/gl/GrGLExtensions.cpp |
index 1ddc101cfcfa07fa087c86314d363540ca0e6e47..43a147d7631326d7cd66dfb093308c996efacd2c 100644 |
--- a/src/gpu/gl/GrGLExtensions.cpp |
+++ b/src/gpu/gl/GrGLExtensions.cpp |
@@ -125,7 +125,7 @@ bool GrGLExtensions::remove(const char ext[]) { |
if (idx >= 0) { |
// This is not terribly effecient but we really only expect this function to be called at |
// most a handful of times when our test programs start. |
- SkAutoTDelete< SkTArray<SkString> > oldStrings(fStrings.detach()); |
+ SkAutoTDelete< SkTArray<SkString> > oldStrings(fStrings.release()); |
fStrings.reset(new SkTArray<SkString>(oldStrings->count() - 1)); |
fStrings->push_back_n(idx, &oldStrings->front()); |
fStrings->push_back_n(oldStrings->count() - idx - 1, &(*oldStrings)[idx] + 1); |