summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-17 19:06:42 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-17 19:06:42 +0000
commit68f2c84d2730bfb4802828d96e6c08083560a196 (patch)
tree399e9dd224830af5e53ffb18622c1ca340c5c33f /webkit
parentea72ed22b211990955c5e3ffcd46295a92453e48 (diff)
downloadchromium_src-68f2c84d2730bfb4802828d96e6c08083560a196.zip
chromium_src-68f2c84d2730bfb4802828d96e6c08083560a196.tar.gz
chromium_src-68f2c84d2730bfb4802828d96e6c08083560a196.tar.bz2
Fix a small leak.
TEST=green mem bots Review URL: http://codereview.chromium.org/7655025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97176 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/plugins/ppapi/quota_file_io.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/plugins/ppapi/quota_file_io.cc b/webkit/plugins/ppapi/quota_file_io.cc
index 2e628c7..82fdf9f 100644
--- a/webkit/plugins/ppapi/quota_file_io.cc
+++ b/webkit/plugins/ppapi/quota_file_io.cc
@@ -224,8 +224,10 @@ QuotaFileIO::~QuotaFileIO() {
bool QuotaFileIO::Write(
int64_t offset, const char* buffer, int32_t bytes_to_write,
WriteCallback* callback) {
- if (bytes_to_write <= 0)
+ if (bytes_to_write <= 0) {
+ delete callback;
return false;
+ }
WriteOperation* op = new WriteOperation(
this, false, offset, buffer, bytes_to_write, callback);
return RegisterOperationForQuotaChecks(op);