summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/variablevalue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire/src/variablevalue.cpp')
-rw-r--r--protocols/Xfire/src/variablevalue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Xfire/src/variablevalue.cpp b/protocols/Xfire/src/variablevalue.cpp
index 6e61aab07d..0de417cffd 100644
--- a/protocols/Xfire/src/variablevalue.cpp
+++ b/protocols/Xfire/src/variablevalue.cpp
@@ -49,7 +49,7 @@ using namespace std;
}
void VariableValue::setValue( char * value) {
- if (this->value) delete[] value;
+ if (this->value) delete[] this->value;
this->value = value;
}
void VariableValue::setValue( std::string value ) {
@@ -105,6 +105,7 @@ using namespace std;
memcpy(namestr,packet+index+read,nameLength);
name = string(namestr);
read+=nameLength;
+ delete[] namestr;
return read;
}