Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
40dc6006
Commit
40dc6006
authored
Jan 12, 2021
by
Aleix Pol Gonzalez
🐧
Browse files
flatpak: bump reference on objects when we take them for a spin
parent
3da1b95b
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
View file @
40dc6006
...
...
@@ -868,11 +868,13 @@ public:
,
m_installation
(
installation
)
,
m_remote
(
remote
)
{
g_object_ref
(
m_remote
);
connect
(
this
,
&
FlatpakRefreshAppstreamMetadataJob
::
finished
,
this
,
&
QObject
::
deleteLater
);
}
~
FlatpakRefreshAppstreamMetadataJob
()
{
g_object_unref
(
m_remote
);
g_object_unref
(
m_cancellable
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment