From 4df7915a2714630047a53e92ac86e024345ab12cb348cbc622c7337b85ec7dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Mon, 13 Feb 2023 19:23:15 +0000 Subject: [PATCH] Accepting request 1065425 from GNOME:Next OBS-URL: https://build.opensuse.org/request/show/1065425 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-software?expand=0&rev=244 --- ...554764815195aaf9f6e23acdd7a9c521ceaa.patch | 26 +++++++++++++++++++ ...00d63b8d7b921b83250a8b9a09e9a1eb6732.patch | 25 ++++++++++++++++++ gnome-software.changes | 9 +++++++ gnome-software.spec | 4 +++ 4 files changed, 64 insertions(+) create mode 100644 1355554764815195aaf9f6e23acdd7a9c521ceaa.patch create mode 100644 66b400d63b8d7b921b83250a8b9a09e9a1eb6732.patch diff --git a/1355554764815195aaf9f6e23acdd7a9c521ceaa.patch b/1355554764815195aaf9f6e23acdd7a9c521ceaa.patch new file mode 100644 index 0000000..6d8d9d9 --- /dev/null +++ b/1355554764815195aaf9f6e23acdd7a9c521ceaa.patch @@ -0,0 +1,26 @@ +From 1355554764815195aaf9f6e23acdd7a9c521ceaa Mon Sep 17 00:00:00 2001 +From: Philip Withnall +Date: Fri, 10 Feb 2023 01:03:59 +0000 +Subject: [PATCH] gs-plugin-job-manage-repository: Fix a minor leak + +Signed-off-by: Philip Withnall +--- + lib/gs-plugin-job-manage-repository.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/lib/gs-plugin-job-manage-repository.c b/lib/gs-plugin-job-manage-repository.c +index 7ee444449..2b8ee668b 100644 +--- a/lib/gs-plugin-job-manage-repository.c ++++ b/lib/gs-plugin-job-manage-repository.c +@@ -63,6 +63,8 @@ gs_plugin_job_manage_repository_dispose (GObject *object) + g_assert (self->saved_error == NULL); + g_assert (self->n_pending_ops == 0); + ++ g_clear_object (&self->repository); ++ + G_OBJECT_CLASS (gs_plugin_job_manage_repository_parent_class)->dispose (object); + } + +-- +GitLab + diff --git a/66b400d63b8d7b921b83250a8b9a09e9a1eb6732.patch b/66b400d63b8d7b921b83250a8b9a09e9a1eb6732.patch new file mode 100644 index 0000000..91289ec --- /dev/null +++ b/66b400d63b8d7b921b83250a8b9a09e9a1eb6732.patch @@ -0,0 +1,25 @@ +From 66b400d63b8d7b921b83250a8b9a09e9a1eb6732 Mon Sep 17 00:00:00 2001 +From: Philip Withnall +Date: Fri, 10 Feb 2023 01:03:42 +0000 +Subject: [PATCH] gs-plugin-job-list-apps: Fix a leak of the GsAppQuery + +Signed-off-by: Philip Withnall +--- + lib/gs-plugin-job-list-apps.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/gs-plugin-job-list-apps.c b/lib/gs-plugin-job-list-apps.c +index a556387e5..56a4e14be 100644 +--- a/lib/gs-plugin-job-list-apps.c ++++ b/lib/gs-plugin-job-list-apps.c +@@ -84,6 +84,7 @@ gs_plugin_job_list_apps_dispose (GObject *object) + g_assert (self->n_pending_ops == 0); + + g_clear_object (&self->result_list); ++ g_clear_object (&self->query); + + G_OBJECT_CLASS (gs_plugin_job_list_apps_parent_class)->dispose (object); + } +-- +GitLab + diff --git a/gnome-software.changes b/gnome-software.changes index 8acba24..5d2a970 100644 --- a/gnome-software.changes +++ b/gnome-software.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Feb 13 08:10:52 UTC 2023 - Bjørn Lie + +- Add upstream leak fixes: + + 66b400d63b8d7b921b83250a8b9a09e9a1eb6732.patch: + gs-plugin-job-list-apps: Fix a leak of the GsAppQuery + + 1355554764815195aaf9f6e23acdd7a9c521ceaa.patch: + gs-plugin-job-manage-repository: Fix a minor leak + ------------------------------------------------------------------- Fri Feb 10 08:43:20 UTC 2023 - Bjørn Lie diff --git a/gnome-software.spec b/gnome-software.spec index 51eb3d7..9466090 100644 --- a/gnome-software.spec +++ b/gnome-software.spec @@ -32,6 +32,10 @@ Patch0: gnome-software-launch-gpk-update-viewer-for-updates.patch # PATCH-FIX-OPENSUSE gnome-software-disable-offline-update.patch bsc#944832 sckang@suse.com -- Disable offline update in SLE and openSUSE Leap Patch1: gnome-software-disable-offline-update.patch %endif +# PATCH-FIX-UPSTREAM 66b400d63b8d7b921b83250a8b9a09e9a1eb6732.patch -- gs-plugin-job-list-apps: Fix a leak of the GsAppQuery +Patch2: https://gitlab.gnome.org/GNOME/gnome-software/-/commit/66b400d63b8d7b921b83250a8b9a09e9a1eb6732.patch +# PATCH-FIX-UPSTREAM 1355554764815195aaf9f6e23acdd7a9c521ceaa.patch -- gs-plugin-job-manage-repository: Fix a minor leak +Patch3: https://gitlab.gnome.org/GNOME/gnome-software/-/commit/1355554764815195aaf9f6e23acdd7a9c521ceaa.patch BuildRequires: gtk-doc BuildRequires: meson >= 0.58.0