Commit 40dc6006 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

flatpak: bump reference on objects when we take them for a spin

parent 3da1b95b
...@@ -868,11 +868,13 @@ public: ...@@ -868,11 +868,13 @@ public:
, m_installation(installation) , m_installation(installation)
, m_remote(remote) , m_remote(remote)
{ {
g_object_ref(m_remote);
connect(this, &FlatpakRefreshAppstreamMetadataJob::finished, this, &QObject::deleteLater); connect(this, &FlatpakRefreshAppstreamMetadataJob::finished, this, &QObject::deleteLater);
} }
~FlatpakRefreshAppstreamMetadataJob() ~FlatpakRefreshAppstreamMetadataJob()
{ {
g_object_unref(m_remote);
g_object_unref(m_cancellable); g_object_unref(m_cancellable);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment