--- a/ui/winui/image.h Sat Apr 05 17:57:04 2025 +0200 +++ b/ui/winui/image.h Sun Jul 20 22:04:39 2025 +0200 @@ -32,10 +32,16 @@ #include "../ui/image.h" class UiImageSource { + unsigned int refcount = 1; + public: winrt::Microsoft::UI::Xaml::Media::ImageSource imgsrc { nullptr }; UiImageSource(winrt::Microsoft::UI::Xaml::Media::ImageSource& src); + + void ref(); + + void unref(); };