ConfigView: fix a potential leak when source is not QQuickItem
If the source component is not a valid item, the created object on the heap can leave unused. This deletes the object for the case.
If the source component is not a valid item, the created object on the heap can leave unused. This deletes the object for the case.