Do not free a shallow copy of an object we'll free later

Make sure we have our own copy we can free
Fixes KDE BUG #268816
2 files changed