From 91b6b26f7038f464f45e018eb230131a0dbf4e34 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 18 Jan 2022 01:15:24 +0100 Subject: [PATCH] qt: Do not leave a nullptr, g_object_unref doesn't like it --- qt/component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/component.cpp b/qt/component.cpp index 7bb493f4..57acd260 100644 --- a/qt/component.cpp +++ b/qt/component.cpp @@ -201,7 +201,7 @@ Component& Component::operator=(const Component& other) Component::Component(Component&& other) : m_cpt(other.m_cpt) { - other.m_cpt = nullptr; + g_object_ref(other.m_cpt); } _AsComponent * AppStream::Component::asComponent() const