Debarshi Ray 2018-06-04 12:45:13 +02:00
parent a829ffe3f4
commit 4b3ab74ade
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From 2f7053f5fa9154437b9397cd204a38e2686107bc Mon Sep 17 00:00:00 2001
From: Christian Persch <chpe@src.gnome.org>
Date: Tue, 29 May 2018 10:47:22 +0200
Subject: [PATCH] client: legacy: Fix invalid free
Use g_free() for memory allocated with g_new().
https://gitlab.gnome.org/GNOME/gnome-terminal/issues/1
---
src/terminal-options.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/terminal-options.c b/src/terminal-options.c
index d1e8a4a4ca48..83ead8909a52 100644
--- a/src/terminal-options.c
+++ b/src/terminal-options.c
@@ -1277,7 +1277,7 @@ terminal_options_free (TerminalOptions *options)
g_clear_object (&options->profiles_list);
- g_slice_free (TerminalOptions, options);
+ g_free (options);
}
static GOptionContext *
--
2.14.3

View File

@ -7,7 +7,7 @@
Name: gnome-terminal
Version: 3.28.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Terminal emulator for GNOME
License: GPLv3+ and GFDL
@ -16,6 +16,7 @@ Source0: http://download.gnome.org/sources/gnome-terminal/3.28/gnome-terminal-%{
Source1: org.gnome.Terminal.gschema.override
Patch0: 0001-build-Don-t-treat-warnings-as-errors.patch
Patch1: 0001-client-legacy-Fix-invalid-free.patch
Patch100: gnome-terminal-notify-open-title-transparency.patch
@ -62,6 +63,7 @@ option to the right-click context menu in Nautilus.
%prep
%setup -q
%patch0 -p1 -b .warnings
%patch1 -p1 -b .client-free
%patch100 -p1 -b .notify-open-title-transparency
%build
@ -102,6 +104,9 @@ make check
%{_datadir}/metainfo/org.gnome.Terminal.Nautilus.metainfo.xml
%changelog
* Mon Jun 04 2018 Debarshi Ray <rishi@fedoraproject.org> - 3.28.2-2
- Backport fix for client-side memory error (GNOME/gnome-terminal#1)
* Mon May 21 2018 Kalev Lember <klember@redhat.com> - 3.28.2-1
- Update to 3.28.2