Index: src/gpu/gl/GrGpuGL_program.cpp |
diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp |
index 45181c25a8d87acabfc186d462cd831eb759819d..681d3f8cf147fc1287e4e9b9d4ee7a5583ec5879 100644 |
--- a/src/gpu/gl/GrGpuGL_program.cpp |
+++ b/src/gpu/gl/GrGpuGL_program.cpp |
@@ -79,7 +79,7 @@ void GrGpuGL::ProgramCache::abandon() { |
for (int i = 0; i < fCount; ++i) { |
SkASSERT(NULL != fEntries[i]->fProgram.get()); |
fEntries[i]->fProgram->abandon(); |
- fEntries[i]->fProgram.reset(NULL); |
+ SkDELETE(fEntries[i]); |
} |
fCount = 0; |
} |