-
-
Notifications
You must be signed in to change notification settings - Fork 236
Open
Description
The QSharedMemory object is currently dynamically allocated using the new operator
d->memory = new QSharedMemory( d->blockServerName );
and finally deleted in the abortSafely() function.
I suggest to define an ownership for the pointer. Either by defining a QObject parent in the constructor or by using a std::uniqe_ptr.
This will increase the probability that the destructor of the QSharedMemory object is called for unintended program flows.
Metadata
Metadata
Assignees
Labels
No labels