]> git.tdb.fi Git - libs/datafile.git/commitdiff
Use correct delete operator in RawData
authorMikko Rasa <tdb@tdb.fi>
Sun, 2 Jan 2022 10:20:51 +0000 (12:20 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 2 Jan 2022 10:20:51 +0000 (12:20 +0200)
source/rawdata.cpp

index de4d7c22bb6e9d1a195174451a08e4817f1b2c75..a8eb5f13fa712dfeed600f3f73cc5a9e6f349f22 100644 (file)
@@ -14,7 +14,7 @@ const char RawData::signature[4] = { 'M', 'D', 'R', 1 };
 
 RawData::~RawData()
 {
-       delete owned_data;
+       delete[] owned_data;
        delete compressed;
        if(in_owned)
                delete in;