From 07bce5f257d30061475452ec9c2e06a132747b54 Mon Sep 17 00:00:00 2001 From: kat Date: Mon, 28 Oct 2024 11:58:15 -0400 Subject: [SharedCache] Fix UI causing BV leaks --- view/sharedcache/ui/dscpicker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view/sharedcache/ui/dscpicker.cpp') diff --git a/view/sharedcache/ui/dscpicker.cpp b/view/sharedcache/ui/dscpicker.cpp index 33877675..a82da4fc 100644 --- a/view/sharedcache/ui/dscpicker.cpp +++ b/view/sharedcache/ui/dscpicker.cpp @@ -15,7 +15,7 @@ void DisplayDSCPicker(UIContext* ctx, Ref dscView) BackgroundThread::create(ctx ? ctx->mainWindow() : nullptr)->thenBackground( [dscView=dscView](QVariant var) { QStringList entries; - SharedCacheAPI::SCRef cache = new SharedCacheAPI::SharedCache(dscView); + Ref cache = new SharedCacheAPI::SharedCache(dscView); for (const auto& img : cache->GetAvailableImages()) entries.push_back(QString::fromStdString(img)); @@ -36,7 +36,7 @@ void DisplayDSCPicker(UIContext* ctx, Ref dscView) })->thenBackground([dscView=dscView](QVariant var){ if (var.toString().isEmpty()) return; - SharedCacheAPI::SCRef cache = new SharedCacheAPI::SharedCache(dscView); + Ref cache = new SharedCacheAPI::SharedCache(dscView); cache->LoadImageWithInstallName(var.toString().toStdString()); })->start(); } -- cgit v1.3.1