From: Mikko Rasa Date: Sun, 2 Jan 2022 10:20:51 +0000 (+0200) Subject: Use correct delete operator in RawData X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=2b4fbb2816351e9acab8f84b902f00c475cc0ab0;p=libs%2Fdatafile.git Use correct delete operator in RawData --- diff --git a/source/rawdata.cpp b/source/rawdata.cpp index de4d7c2..a8eb5f1 100644 --- a/source/rawdata.cpp +++ b/source/rawdata.cpp @@ -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;