diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-31 23:29:32 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-31 23:29:32 +0000 |
commit | e237176a06c256fb8839ff0f4368c12de91f6839 (patch) | |
tree | 8d57d8de7b98bd82d40160e3f36a2d6595f6746c /cc/resource_provider.cc | |
parent | 6a4d627c9eef8035a8422fa31e364f967e2b587e (diff) | |
download | chromium_src-e237176a06c256fb8839ff0f4368c12de91f6839.zip chromium_src-e237176a06c256fb8839ff0f4368c12de91f6839.tar.gz chromium_src-e237176a06c256fb8839ff0f4368c12de91f6839.tar.bz2 |
cc: Fix mismatched new[]/delete call in ResourceProvider
R=jamesr@chromium.org
BUG=158731
Review URL: https://codereview.chromium.org/11312020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165256 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resource_provider.cc')
-rw-r--r-- | cc/resource_provider.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/resource_provider.cc b/cc/resource_provider.cc index 33ed800..dab281a 100644 --- a/cc/resource_provider.cc +++ b/cc/resource_provider.cc @@ -240,7 +240,7 @@ void ResourceProvider::deleteResourceInternal(ResourceMap::iterator it) GLC(context3d, context3d->deleteTexture(resource->glId)); } if (resource->pixels) - delete resource->pixels; + delete[] resource->pixels; g_debugResDestroyed[g_debugResDestroyedCount % g_debugMaxResourcesTracked] = (*it).first | g_debugZone; m_resources.erase(it); |