From 58034b4a48df078e37b55a13bbb855f7615c18b5 Mon Sep 17 00:00:00 2001 From: poma Date: Thu, 2 Jun 2016 20:00:38 +0200 Subject: [PATCH] Backport a patch to fix a memory leak during initialization in GDBusProxy --- ...-a-memory-leak-during-initialization.patch | 25 +++++++++++++++++++ glib2.spec | 10 +++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 0001-GDBusProxy-Fix-a-memory-leak-during-initialization.patch diff --git a/0001-GDBusProxy-Fix-a-memory-leak-during-initialization.patch b/0001-GDBusProxy-Fix-a-memory-leak-during-initialization.patch new file mode 100644 index 0000000..c13e365 --- /dev/null +++ b/0001-GDBusProxy-Fix-a-memory-leak-during-initialization.patch @@ -0,0 +1,25 @@ +From e98e1eff83c742c73a148dd7b75c00d77e0cee40 Mon Sep 17 00:00:00 2001 +From: Evangelos Foutras +Date: Wed, 25 Nov 2015 23:29:18 +0200 +Subject: [PATCH] GDBusProxy: Fix a memory leak during initialization + +https://bugzilla.gnome.org/show_bug.cgi?id=758641 +--- + gio/gdbusproxy.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gio/gdbusproxy.c b/gio/gdbusproxy.c +index 52a22fb..7b1140f 100644 +--- a/gio/gdbusproxy.c ++++ b/gio/gdbusproxy.c +@@ -1720,6 +1720,7 @@ async_initable_init_second_finish (GAsyncInitable *initable, + if (result != NULL) + { + process_get_all_reply (proxy, result); ++ g_variant_unref (result); + } + + proxy->priv->initialized = TRUE; +-- +2.4.11 + diff --git a/glib2.spec b/glib2.spec index 93c0310..26c2918 100644 --- a/glib2.spec +++ b/glib2.spec @@ -3,12 +3,16 @@ Summary: A library of handy utility functions Name: glib2 Version: 2.46.2 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2+ Group: System Environment/Libraries URL: http://www.gtk.org #VCS: git:git://git.gnome.org/glib Source: http://download.gnome.org/sources/glib/2.46/glib-%{version}.tar.xz +# Backported from upstream +# GDBusProxy: Fix a memory leak during initialization +# https://git.gnome.org/browse/glib/commit/gio/gdbusproxy.c?h=glib-2-46&id=e98e1ef +Patch0: 0001-GDBusProxy-Fix-a-memory-leak-during-initialization.patch BuildRequires: pkgconfig BuildRequires: gettext @@ -81,6 +85,7 @@ the functionality of the installed glib2 package. %prep %setup -q -n glib-%{version} +%patch0 -p1 %build # Support builds of both git snapshots and tarballs packed with autogoo @@ -218,6 +223,9 @@ gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules %{_datadir}/installed-tests %changelog +* Thu Jun 02 2016 poma - 2.46.2-2 +- Backport a patch to fix a memory leak during initialization in GDBusProxy + * Mon Nov 09 2015 Kalev Lember - 2.46.2-1 - Update to 2.46.2