[WPF] Fix crash caused by incorrect disposal of resources
[WPF] Fix crash caused by incorrect disposal of resources

steffenWi/xwt,sevoku/xwt,antmicro/xwt,lytico/xwt,residuum/xwt,hwthomas/xwt,cra0zy/xwt,iainx/xwt,akrisiun/xwt,mminns/xwt,directhex/xwt,mminns/xwt,TheBrainTech/xwt,hamekoz/xwt,mono/xwt