From 9c30279458cb03c46f5f207940ca9a763113e488 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 9 Jul 2019 13:30:52 +0300 Subject: [PATCH] Backport a patch that fixes a fairly large memory leak in gnome-software --- 0001-ref-Fix-a-memory-leak.patch | 26 ++++++++++++++++++++++++++ flatpak.spec | 8 +++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 0001-ref-Fix-a-memory-leak.patch diff --git a/0001-ref-Fix-a-memory-leak.patch b/0001-ref-Fix-a-memory-leak.patch new file mode 100644 index 0000000..0acd1d8 --- /dev/null +++ b/0001-ref-Fix-a-memory-leak.patch @@ -0,0 +1,26 @@ +From 18a16227556ad0aa24f9b8c759d571fcc5cdb728 Mon Sep 17 00:00:00 2001 +From: Kalev Lember +Date: Fri, 14 Jun 2019 12:30:57 +0200 +Subject: [PATCH] ref: Fix a memory leak + +Closes: #2964 +Approved by: mwleeds +--- + common/flatpak-ref.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/common/flatpak-ref.c b/common/flatpak-ref.c +index 38554e97..6dacb19c 100644 +--- a/common/flatpak-ref.c ++++ b/common/flatpak-ref.c +@@ -82,6 +82,7 @@ flatpak_ref_finalize (GObject *object) + g_free (priv->arch); + g_free (priv->branch); + g_free (priv->commit); ++ g_free (priv->collection_id); + + G_OBJECT_CLASS (flatpak_ref_parent_class)->finalize (object); + } +-- +2.21.0 + diff --git a/flatpak.spec b/flatpak.spec index fe50214..4be52d3 100644 --- a/flatpak.spec +++ b/flatpak.spec @@ -3,7 +3,7 @@ Name: flatpak Version: 1.4.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Application deployment framework for desktop apps License: LGPLv2+ @@ -12,6 +12,9 @@ Source0: https://github.com/flatpak/flatpak/releases/download/%{version}/ # Add Fedora flatpak repositories Source1: flatpak-add-fedora-repos.service +# Backported from upstream +Patch0: 0001-ref-Fix-a-memory-leak.patch + BuildRequires: pkgconfig(appstream-glib) BuildRequires: pkgconfig(dconf) BuildRequires: pkgconfig(fuse) @@ -260,6 +263,9 @@ fi %changelog +* Tue Jul 09 2019 Kalev Lember - 1.4.2-2 +- Backport a patch that fixes a fairly large memory leak in gnome-software + * Fri Jun 28 2019 David King - 1.4.2-1 - Update to 1.4.2 (#1725071)