aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2014-06-29 16:38:58 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-29 16:38:58 -0700
commit40d9c0e331fe2b76b4e13ca6cdf1ea50451ba6cc (patch)
tree1641ac53528a0b028bd31503f17a77b812389a80
parent55e61f0ef4e5c8c34ac107deaadc9b4ffef3111b (diff)
Fix memory leak in (Begin atlasing https://codereview.chromium.org/354533004/)
R=bsalomon@google.com TBR=bsalomon@google.com Author: robertphillips@google.com Review URL: https://codereview.chromium.org/361663002
-rw-r--r--src/gpu/GrLayerCache.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/GrLayerCache.cpp b/src/gpu/GrLayerCache.cpp
index 5f657c7342..eb0cc8a668 100644
--- a/src/gpu/GrLayerCache.cpp
+++ b/src/gpu/GrLayerCache.cpp
@@ -47,6 +47,7 @@ GrLayerCache::GrLayerCache(GrContext* context)
}
GrLayerCache::~GrLayerCache() {
+ this->freeAll();
}
void GrLayerCache::initAtlas() {