summaryrefslogtreecommitdiff
path: root/view/sharedcache/ui/dscwidget.cpp
diff options
context:
space:
mode:
authorkat <kat@vector35.com>2024-10-28 11:58:15 -0400
committerkat <kat@vector35.com>2024-10-28 12:58:51 -0400
commit07bce5f257d30061475452ec9c2e06a132747b54 (patch)
tree434dbd4660b981edd81c3f1651e868aacb240b26 /view/sharedcache/ui/dscwidget.cpp
parent891b8c0d4366266c0b9af08037dbd71c54cf86b3 (diff)
[SharedCache] Fix UI causing BV leaks
Diffstat (limited to 'view/sharedcache/ui/dscwidget.cpp')
-rw-r--r--view/sharedcache/ui/dscwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/sharedcache/ui/dscwidget.cpp b/view/sharedcache/ui/dscwidget.cpp
index 2483a26e..adece165 100644
--- a/view/sharedcache/ui/dscwidget.cpp
+++ b/view/sharedcache/ui/dscwidget.cpp
@@ -346,7 +346,7 @@ void DSCSidebarView::navigateToIndex(const QModelIndex& index)
if (reply == QMessageBox::Yes)
{
- SharedCacheAPI::SharedCache* cache = new SharedCacheAPI::SharedCache(m_data);
+ Ref<SharedCacheAPI::SharedCache> cache = new SharedCacheAPI::SharedCache(m_data);
cache->LoadImageWithInstallName(modelItem->m_installName);
m_data->UpdateAnalysis();
}