Fix memory leak in (Begin atlasing https://codereview.chromium.org/354533004/)
authorrobertphillips <robertphillips@google.com>
Sun, 29 Jun 2014 23:38:58 +0000 (16:38 -0700)
committerCommit bot <commit-bot@chromium.org>
Sun, 29 Jun 2014 23:38:58 +0000 (16:38 -0700)
R=bsalomon@google.com
TBR=bsalomon@google.com

Author: robertphillips@google.com

Review URL: https://codereview.chromium.org/361663002

src/gpu/GrLayerCache.cpp

index 5f657c7..eb0cc8a 100644 (file)
@@ -47,6 +47,7 @@ GrLayerCache::GrLayerCache(GrContext* context)
 }
 
 GrLayerCache::~GrLayerCache() {
+    this->freeAll();
 }
 
 void GrLayerCache::initAtlas() {