Skip to content
Snippets Groups Projects
Commit 5eeecdb1 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: Fixing double free


Calling detach() in setKey() will free the shared memory twice, if
we do not set m_memory to nullptr.
Clean cleanHandleInternal() does always return true, so
checking the value does not make sense.
We have to call cleanHandleInternal() immediately after the close.

Change-Id: I110693d1dd9dae4ff5e52cfd3fdd2f33137af969
Reviewed-by: default avatarTobias Hunger <tobias.hunger@qt.io>
parent 337393ce
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment