commit | 6c82cafe4c9af40addab0c383c0c96ab4755bdc7 | [log] [tgz] |
---|---|---|
author | alokp@chromium.org <alokp@chromium.org@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Thu Oct 14 16:08:56 2010 +0000 |
committer | alokp@chromium.org <alokp@chromium.org@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Thu Oct 14 16:08:56 2010 +0000 |
tree | dc39bcc80e753e5f9deaca4044d63689a6c93929 | |
parent | 9ecf39506d85d8ea5daaf785efcf4ed6fe9cb1d7 [diff] |
Replaced delete with delete[]. Patch submitted by timeless. BUG=59 Review URL: http://codereview.appspot.com/2493041 git-svn-id: https://angleproject.googlecode.com/svn/trunk@449 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/SymbolTable.h b/src/compiler/SymbolTable.h index 42cf736..38bc657 100644 --- a/src/compiler/SymbolTable.h +++ b/src/compiler/SymbolTable.h
@@ -94,7 +94,10 @@ void shareConstPointer( ConstantUnion *constArray) { - delete unionArray; + if (unionArray == constArray) + return; + + delete[] unionArray; unionArray = constArray; } TVariable(const TVariable&, TStructureMap& remapper); // copy constructor