diff options
-rw-r--r-- | src/gpu/GrContext.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index eedb3e475f..f6c66db223 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -314,7 +314,9 @@ GrContext::~GrContext() { this->flush(); } - fDrawingManager->cleanup(); + if (fDrawingManager) { + fDrawingManager->cleanup(); + } for (int i = 0; i < fCleanUpData.count(); ++i) { (*fCleanUpData[i].fFunc)(this, fCleanUpData[i].fInfo); |