1
0
Bjørn Lie 2023-02-13 19:23:15 +00:00 committed by Git OBS Bridge
parent 64fb4ceda3
commit 4df7915a27
4 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From 1355554764815195aaf9f6e23acdd7a9c521ceaa Mon Sep 17 00:00:00 2001
From: Philip Withnall <pwithnall@endlessos.org>
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 <pwithnall@endlessos.org>
---
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

View File

@ -0,0 +1,25 @@
From 66b400d63b8d7b921b83250a8b9a09e9a1eb6732 Mon Sep 17 00:00:00 2001
From: Philip Withnall <pwithnall@endlessos.org>
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 <pwithnall@endlessos.org>
---
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

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Mon Feb 13 08:10:52 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- 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 <bjorn.lie@gmail.com>

View File

@ -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