Accepting request 393173 from GNOME:Next

Add patch to plug a mem leak

OBS-URL: https://build.opensuse.org/request/show/393173
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/tracker?expand=0&rev=93
This commit is contained in:
Bjørn Lie 2016-05-02 12:35:25 +00:00 committed by Git OBS Bridge
parent b330ee12d5
commit c72434a1fe
5 changed files with 45 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun May 1 10:49:54 UTC 2016 - zaitor@opensuse.org
- Add tracker-fix-memory-leak.patch: Fix a memory leak, patch from
upstream git (bgo#765172).
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 21 20:22:43 UTC 2016 - dimstar@opensuse.org Mon Mar 21 20:22:43 UTC 2016 - dimstar@opensuse.org

View File

@ -54,6 +54,8 @@ Source0: http://download.gnome.org/sources/tracker/1.8/%{_name}-%{version
Source2: README.SUSE.rss Source2: README.SUSE.rss
# PATCH-FIX-UPSTREAM tracker-extract-private.patch bgo#725689 dimstar@opensuse.org -- Do not maintain LT versioning for private libs # PATCH-FIX-UPSTREAM tracker-extract-private.patch bgo#725689 dimstar@opensuse.org -- Do not maintain LT versioning for private libs
Patch0: tracker-extract-private.patch Patch0: tracker-extract-private.patch
# PATCH-FIX-UPSTREAM tracker-fix-memory-leak.patch bgo#765172 zaitor@opensuse.org -- Fix a memory leak, patch from upstream git.
Patch1: tracker-fix-memory-leak.patch
BuildRequires: NetworkManager-devel >= 0.8 BuildRequires: NetworkManager-devel >= 0.8
BuildRequires: enca-devel BuildRequires: enca-devel
BuildRequires: fdupes BuildRequires: fdupes
@ -469,6 +471,7 @@ This package contains an nautilus plugin to tag files with Tracker.
%prep %prep
%setup -q -n %{_name}-%{version} %setup -q -n %{_name}-%{version}
%patch0 -p1 %patch0 -p1
%patch1 -p1
translation-update-upstream translation-update-upstream
cp %{S:2} src/miners/rss/README.SUSE cp %{S:2} src/miners/rss/README.SUSE

View File

@ -0,0 +1,27 @@
From 6c0b7831e1574123e9d9f01035d0dc7ea1e1583b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <mail@baedert.org>
Date: Sun, 17 Apr 2016 12:19:39 +0200
Subject: miner-manager: Plug memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=765172
---
src/libtracker-control/tracker-miner-manager.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/libtracker-control/tracker-miner-manager.c b/src/libtracker-control/tracker-miner-manager.c
index aba5b38..af837b0 100644
--- a/src/libtracker-control/tracker-miner-manager.c
+++ b/src/libtracker-control/tracker-miner-manager.c
@@ -526,7 +526,9 @@ miner_data_free (MinerData *data)
}
g_free (data->dbus_path);
+ g_free (data->dbus_name);
g_free (data->display_name);
+ g_free (data->description);
g_slice_free (MinerData, data);
}
--
cgit v0.12

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun May 1 10:49:54 UTC 2016 - zaitor@opensuse.org
- Add tracker-fix-memory-leak.patch: Fix a memory leak, patch from
upstream git (bgo#765172).
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 21 20:22:43 UTC 2016 - dimstar@opensuse.org Mon Mar 21 20:22:43 UTC 2016 - dimstar@opensuse.org

View File

@ -53,6 +53,8 @@ Source0: http://download.gnome.org/sources/tracker/1.8/%{_name}-%{version
Source2: README.SUSE.rss Source2: README.SUSE.rss
# PATCH-FIX-UPSTREAM tracker-extract-private.patch bgo#725689 dimstar@opensuse.org -- Do not maintain LT versioning for private libs # PATCH-FIX-UPSTREAM tracker-extract-private.patch bgo#725689 dimstar@opensuse.org -- Do not maintain LT versioning for private libs
Patch0: tracker-extract-private.patch Patch0: tracker-extract-private.patch
# PATCH-FIX-UPSTREAM tracker-fix-memory-leak.patch bgo#765172 zaitor@opensuse.org -- Fix a memory leak, patch from upstream git.
Patch1: tracker-fix-memory-leak.patch
BuildRequires: NetworkManager-devel >= 0.8 BuildRequires: NetworkManager-devel >= 0.8
BuildRequires: enca-devel BuildRequires: enca-devel
BuildRequires: fdupes BuildRequires: fdupes
@ -468,6 +470,7 @@ This package contains an nautilus plugin to tag files with Tracker.
%prep %prep
%setup -q -n %{_name}-%{version} %setup -q -n %{_name}-%{version}
%patch0 -p1 %patch0 -p1
%patch1 -p1
translation-update-upstream translation-update-upstream
cp %{S:2} src/miners/rss/README.SUSE cp %{S:2} src/miners/rss/README.SUSE