Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Discover
Commits
40dc6006
Commit
40dc6006
authored
Jan 12, 2021
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flatpak: bump reference on objects when we take them for a spin
parent
3da1b95b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp
+2
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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