diff --git a/src/model/Stroke.cpp b/src/model/Stroke.cpp index c79b5521..3ce35c9c 100644 --- a/src/model/Stroke.cpp +++ b/src/model/Stroke.cpp @@ -91,7 +91,7 @@ void Stroke::readSerialized(ObjectInputStream& in) int count{}; in.readData((void**) &p, &count); this->points = std::vector{p, p + count}; - delete[] p; + g_free(p); this->lineStyle.readSerialized(in); in.endObject();