Commit 6c82cafe by alokp@chromium.org

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
parent 9ecf3950
...@@ -94,7 +94,10 @@ public: ...@@ -94,7 +94,10 @@ public:
void shareConstPointer( ConstantUnion *constArray) void shareConstPointer( ConstantUnion *constArray)
{ {
delete unionArray; if (unionArray == constArray)
return;
delete[] unionArray;
unionArray = constArray; unionArray = constArray;
} }
TVariable(const TVariable&, TStructureMap& remapper); // copy constructor TVariable(const TVariable&, TStructureMap& remapper); // copy constructor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment