N
N
Nikolay Nozdrin-Plotnitsky2015-04-24 18:12:01
Qt
Nikolay Nozdrin-Plotnitsky, 2015-04-24 18:12:01

Is there a memory leak in QByteArray?

Judging by the code, QByteArray contains a pointer where the bytes are stored. And the destructor is created standard, that is, when QByteArray is deleted, the pointer is deleted, but the memory to which it points is not released?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2015-04-24
@vt4a2h

No.
The QByteArray data pointer (data() method) is valid until the object is reallocated or deleted.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question