diff options
author | joye <joye> | 2014-07-03 20:08:15 (GMT) |
---|---|---|
committer | joye <joye> | 2014-07-03 20:08:15 (GMT) |
commit | 4f7a2ece9c889c3e6ac5377f39a8757827e5323c (patch) | |
tree | 21e67340a0b893fd7c09bde8a456304938b6dcc1 /src | |
parent | 8f5b98c9ae0abae3475332a53e5fc1a383537da2 (diff) | |
download | blt-4f7a2ece9c889c3e6ac5377f39a8757827e5323c.zip blt-4f7a2ece9c889c3e6ac5377f39a8757827e5323c.tar.gz blt-4f7a2ece9c889c3e6ac5377f39a8757827e5323c.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r-- | src/bltGrMarkerOption.C | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bltGrMarkerOption.C b/src/bltGrMarkerOption.C index 7797bc4..c820cda 100644 --- a/src/bltGrMarkerOption.C +++ b/src/bltGrMarkerOption.C @@ -101,7 +101,7 @@ static Tcl_Obj* CoordsGetProc(ClientData clientData, Tk_Window tkwin, return Tcl_NewListObj(0, NULL); int cnt = coordsPtr->num*2; - Tcl_Obj** ll = (Tcl_Obj**)calloc(cnt, sizeof(Tcl_Obj*)); + Tcl_Obj** ll = new Tcl_Obj*[cnt]; Point2d* pp = coordsPtr->points; for (int ii=0; ii<cnt; pp++) { @@ -110,7 +110,7 @@ static Tcl_Obj* CoordsGetProc(ClientData clientData, Tk_Window tkwin, } Tcl_Obj* listObjPtr = Tcl_NewListObj(cnt, ll); - free(ll); + delete [] ll; return listObjPtr; } |