import QtQuick Loader { Component.onDestruction: sourceComponent = undefined }