aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/objects/class_file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/objects/class_file.cpp b/src/modules/objects/class_file.cpp
index 3131eefd2..6c3867a2c 100644
--- a/src/modules/objects/class_file.cpp
+++ b/src/modules/objects/class_file.cpp
@@ -578,8 +578,8 @@ KVSO_CLASS_FUNCTION(file,readHexBlock)
}
str[index]='\0';
c->returnValue()->setString(str);
- delete str;
- delete buff;
+ delete[] str;
+ delete[] buff;
return true;
}