diff options
| author | kat <kat@vector35.com> | 2024-10-28 11:58:15 -0400 |
|---|---|---|
| committer | kat <kat@vector35.com> | 2024-10-28 12:58:51 -0400 |
| commit | 07bce5f257d30061475452ec9c2e06a132747b54 (patch) | |
| tree | 434dbd4660b981edd81c3f1651e868aacb240b26 /view/sharedcache/ui/dscpicker.cpp | |
| parent | 891b8c0d4366266c0b9af08037dbd71c54cf86b3 (diff) | |
[SharedCache] Fix UI causing BV leaks
Diffstat (limited to 'view/sharedcache/ui/dscpicker.cpp')
| -rw-r--r-- | view/sharedcache/ui/dscpicker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<BinaryView> dscView) BackgroundThread::create(ctx ? ctx->mainWindow() : nullptr)->thenBackground( [dscView=dscView](QVariant var) { QStringList entries; - SharedCacheAPI::SCRef<SharedCacheAPI::SharedCache> cache = new SharedCacheAPI::SharedCache(dscView); + Ref<SharedCacheAPI::SharedCache> 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<BinaryView> dscView) })->thenBackground([dscView=dscView](QVariant var){ if (var.toString().isEmpty()) return; - SharedCacheAPI::SCRef<SharedCacheAPI::SharedCache> cache = new SharedCacheAPI::SharedCache(dscView); + Ref<SharedCacheAPI::SharedCache> cache = new SharedCacheAPI::SharedCache(dscView); cache->LoadImageWithInstallName(var.toString().toStdString()); })->start(); } |
