summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjoye <joye>2014-07-07 20:05:58 (GMT)
committerjoye <joye>2014-07-07 20:05:58 (GMT)
commit8d2751112b917b410dc0ca8a4cfff127ec7399cf (patch)
tree8c9f24a80abc04683d82764a75ca6e351da9dacf /src
parente7bbaae2886273957dee0ed6aa8af4571791a772 (diff)
downloadblt-8d2751112b917b410dc0ca8a4cfff127ec7399cf.zip
blt-8d2751112b917b410dc0ca8a4cfff127ec7399cf.tar.gz
blt-8d2751112b917b410dc0ca8a4cfff127ec7399cf.tar.bz2
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/bltGrElem.C2
-rw-r--r--src/bltGrElemBar.C2
-rw-r--r--src/bltGrElemLine.C2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/bltGrElem.C b/src/bltGrElem.C
index 783002b..8231606 100644
--- a/src/bltGrElem.C
+++ b/src/bltGrElem.C
@@ -241,7 +241,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;
diff --git a/src/bltGrElemBar.C b/src/bltGrElemBar.C
index 2e28ed7..2c23945 100644
--- a/src/bltGrElemBar.C
+++ b/src/bltGrElemBar.C
@@ -466,7 +466,7 @@ void BarElement::map()
}
mergePens(dataToStyle);
- free(dataToStyle);
+ delete [] dataToStyle;
}
void BarElement::extents(Region2d *regPtr)
diff --git a/src/bltGrElemLine.C b/src/bltGrElemLine.C
index d62b45a..94d0746 100644
--- a/src/bltGrElemLine.C
+++ b/src/bltGrElemLine.C
@@ -383,7 +383,7 @@ void LineElement::map()
}
mergePens(styleMap);
- free(styleMap);
+ delete [] styleMap;
}
void LineElement::extents(Region2d *extsPtr)