Fix GDI objects leak when setting custom cursor
Fix GDI objects leak when setting custom cursor

Fixes #19906

ex/godot,firefly2442/godot,firefly2442/godot,vnen/godot,Valentactive/godot,Paulloz/godot,Faless/godot,akien-mga/godot,Paulloz/godot,ZuBsPaCe/godot,DmitriySalnikov/godot,ex/godot,godotengine/godot,BastiaanOlij/godot,pkowal1982/godot,DmitriySalnikov/godot,godotengine/godot,groud/godot,Valentactive/godot,okamstudio/godot,Shockblast/godot,vkbsb/godot,sanikoyes/godot,Zylann/godot,vkbsb/godot,BastiaanOlij/godot,Valentactive/godot,sanikoyes/godot,godotengine/godot,Paulloz/godot,okamstudio/godot,ZuBsPaCe/godot,Zylann/godot,godotengine/godot,DmitriySalnikov/godot,Zylann/godot,MarianoGnu/godot,vnen/godot,Faless/godot,sanikoyes/godot,DmitriySalnikov/godot,Faless/godot,akien-mga/godot,MarianoGnu/godot,honix/godot,josempans/godot,MarianoGnu/godot,firefly2442/godot,okamstudio/godot,pkowal1982/godot,vnen/godot,josempans/godot,DmitriySalnikov/godot,BastiaanOlij/godot,ZuBsPaCe/godot,okamstudio/godot,josempans/godot,ex/godot,MarianoGnu/godot,okamstudio/godot,Shockblast/godot,groud/godot,vnen/godot,vkbsb/godot,godotengine/godot,firefly2442/godot,akien-mga/godot,BastiaanOlij/godot,vnen/godot,pkowal1982/godot,MarianoGnu/godot,akien-mga/godot,ZuBsPaCe/godot,Valentactive/godot,honix/godot,godotengine/godot,pkowal1982/godot,ZuBsPaCe/godot,groud/godot,ZuBsPaCe/godot,ZuBsPaCe/godot,akien-mga/godot,ex/godot,ex/godot,Valentactive/godot,akien-mga/godot,Valentactive/godot,BastiaanOlij/godot,groud/godot,vkbsb/godot,sanikoyes/godot,akien-mga/godot,Zylann/godot,guilhermefelipecgs/godot,honix/godot,guilhermefelipecgs/godot,guilhermefelipecgs/godot,josempans/godot,okamstudio/godot,josempans/godot,ex/godot,vkbsb/godot,firefly2442/godot,firefly2442/godot,okamstudio/godot,josempans/godot,Shockblast/godot,firefly2442/godot,vkbsb/godot,MarianoGnu/godot,BastiaanOlij/godot,BastiaanOlij/godot,Valentactive/godot,guilhermefelipecgs/godot,pkowal1982/godot,Faless/godot,honix/godot,Paulloz/godot,vnen/godot,sanikoyes/godot,Paulloz/godot,BastiaanOlij/godot,MarianoGnu/godot,Paulloz/godot,Faless/godot,ex/godot,Faless/godot,pkowal1982/godot,firefly2442/godot,Shockblast/godot,sanikoyes/godot,Zylann/godot,vkbsb/godot,godotengine/godot,Zylann/godot,Shockblast/godot,guilhermefelipecgs/godot,groud/godot,ZuBsPaCe/godot,Shockblast/godot,honix/godot,akien-mga/godot,vkbsb/godot,honix/godot,Paulloz/godot,ex/godot,okamstudio/godot,pkowal1982/godot,josempans/godot,okamstudio/godot,Valentactive/godot,guilhermefelipecgs/godot,guilhermefelipecgs/godot,Zylann/godot,Zylann/godot,Shockblast/godot,Faless/godot,pkowal1982/godot,DmitriySalnikov/godot,godotengine/godot,okamstudio/godot,Shockblast/godot,Faless/godot,guilhermefelipecgs/godot,DmitriySalnikov/godot,MarianoGnu/godot,sanikoyes/godot,groud/godot,sanikoyes/godot,josempans/godot,vnen/godot,vnen/godot