[gnome-builder/gnome-builder-41] flatpak: simplify object tracking
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-41] flatpak: simplify object tracking
- Date: Thu, 18 Nov 2021 00:15:46 +0000 (UTC)
commit 796171adbdb916d751513183e3cab2aa1d570e6a
Author: Christian Hergert <chergert redhat com>
Date: Wed Nov 17 16:15:23 2021 -0800
flatpak: simplify object tracking
src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
b/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
index 1cd99c092..f095d9200 100644
--- a/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
+++ b/src/plugins/flatpak/daemon/ipc-flatpak-service-impl.c
@@ -1124,7 +1124,7 @@ ipc_flatpak_service_impl_install (IpcFlatpakService *service,
state = g_slice_new0 (InstallState);
state->cancellable = g_cancellable_new ();
- state->invocation = g_steal_pointer (&invocation);
+ state->invocation = g_object_ref (invocation);
state->refs = g_array_ref (refs);
state->parent_window = parent_window[0] ? g_strdup (parent_window) : NULL;
state->transfer = g_object_ref (transfer);
@@ -1142,7 +1142,7 @@ ipc_flatpak_service_impl_install (IpcFlatpakService *service,
task = g_task_new (self, state->cancellable, NULL, NULL);
g_object_set_data_full (G_OBJECT (task),
"INVOCATION",
- g_object_ref (state->invocation),
+ g_object_ref (invocation),
g_object_unref);
g_signal_connect_object (task,
"notify::completed",
@@ -1153,6 +1153,8 @@ ipc_flatpak_service_impl_install (IpcFlatpakService *service,
g_task_set_task_data (task, state, (GDestroyNotify)install_state_free);
g_task_run_in_thread (task, install_worker);
+ g_object_unref (invocation);
+
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]