Backport a patch to fix a memory leak during initialization in GDBusProxy
This commit is contained in:
parent
c059c40ded
commit
58034b4a48
|
@ -0,0 +1,25 @@
|
|||
From e98e1eff83c742c73a148dd7b75c00d77e0cee40 Mon Sep 17 00:00:00 2001
|
||||
From: Evangelos Foutras <evangelos@foutrelis.com>
|
||||
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
|
||||
|
10
glib2.spec
10
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 <poma@gmail.com> - 2.46.2-2
|
||||
- Backport a patch to fix a memory leak during initialization in GDBusProxy
|
||||
|
||||
* Mon Nov 09 2015 Kalev Lember <klember@redhat.com> - 2.46.2-1
|
||||
- Update to 2.46.2
|
||||
|
||||
|
|
Loading…
Reference in New Issue