summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjoye <joye>2014-07-03 19:14:54 (GMT)
committerjoye <joye>2014-07-03 19:14:54 (GMT)
commit4213407fa8d2e2e9a810d17408c15d518bde2bde (patch)
tree263934ba3c5206ae43f5660343c08d037ef9811e /src
parenta11814a19905b345c4a3744e49ed7bce904a4efa (diff)
downloadblt-4213407fa8d2e2e9a810d17408c15d518bde2bde.zip
blt-4213407fa8d2e2e9a810d17408c15d518bde2bde.tar.gz
blt-4213407fa8d2e2e9a810d17408c15d518bde2bde.tar.bz2
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/bltGrElem.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bltGrElem.C b/src/bltGrElem.C
index 2cc7ba9..815ebdc 100644
--- a/src/bltGrElem.C
+++ b/src/bltGrElem.C
@@ -71,7 +71,7 @@ Element::~Element()
delete [] name_;
if (activeIndices_)
- free(activeIndices_);
+ delete [] activeIndices_;
Tk_FreeConfigOptions((char*)ops_, optionTable_, graphPtr_->tkwin_);
free(ops_);
@@ -110,7 +110,7 @@ PenStyle** Element::StyleMap()
// Create a style mapping array (data point index to style),
// initialized to the default style.
- PenStyle **dataToStyle = (PenStyle**)malloc(nPoints * sizeof(PenStyle *));
+ PenStyle** dataToStyle = new PenStyle*[nPoints];
for (int ii=0; ii<nPoints; ii++)
dataToStyle[ii] = stylePtr;