summaryrefslogtreecommitdiffstats
path: root/src/bltSwitch.C
diff options
context:
space:
mode:
authorjoye <joye>2013-08-28 18:47:33 (GMT)
committerjoye <joye>2013-08-28 18:47:33 (GMT)
commit005cfbd176083223ec47d4613034ae2a15a79b9c (patch)
tree39721d26ffa5942a4333b06e7bd61e760612cce1 /src/bltSwitch.C
parent48974a09f23839821ca95f228fc0f3f53bb1cefa (diff)
downloadblt-005cfbd176083223ec47d4613034ae2a15a79b9c.zip
blt-005cfbd176083223ec47d4613034ae2a15a79b9c.tar.gz
blt-005cfbd176083223ec47d4613034ae2a15a79b9c.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltSwitch.C')
-rw-r--r--src/bltSwitch.C10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bltSwitch.C b/src/bltSwitch.C
index 35228d1..6d1aa31 100644
--- a/src/bltSwitch.C
+++ b/src/bltSwitch.C
@@ -268,9 +268,9 @@ DoSwitch(
char *value;
value = Tcl_GetString(objPtr);
- value = (*value == '\0') ? NULL : Blt_AssertStrdup(value);
+ value = (*value == '\0') ? NULL : Blt_Strdup(value);
if (*(char **)ptr != NULL) {
- Blt_Free(*(char **)ptr);
+ free(*(char **)ptr);
}
*(char **)ptr = value;
}
@@ -282,10 +282,10 @@ DoSwitch(
string = Tcl_GetString(objPtr);
strPtr = (char **)ptr;
new = ((*string == '\0') && (sp->flags & BLT_SWITCH_NULL_OK))
- ? NULL : Blt_AssertStrdup(string);
+ ? NULL : Blt_Strdup(string);
old = *strPtr;
if (old != NULL) {
- Blt_Free(old);
+ free(old);
}
*strPtr = new;
}
@@ -454,7 +454,7 @@ Blt_FreeSwitches(
case BLT_SWITCH_STRING:
case BLT_SWITCH_LIST:
if (*((char **) ptr) != NULL) {
- Blt_Free(*((char **) ptr));
+ free(*((char **) ptr));
*((char **) ptr) = NULL;
}
break;