diff --git a/.gitignore b/.gitignore index d7dcbe9..c2e37bb 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ gnome-applets-2.31.6.tar.bz2 /gnome-applets-3.5.92.tar.xz /gnome-applets-3.34.0.tar.xz /gnome-applets-3.36.1.tar.xz +/gnome-applets-3.36.2.tar.xz diff --git a/cpufreq-fix-memory-leak.patch b/cpufreq-fix-memory-leak.patch deleted file mode 100644 index 176bb97..0000000 --- a/cpufreq-fix-memory-leak.patch +++ /dev/null @@ -1,35 +0,0 @@ -From d283341d9ce172723be6c8f5babd73d6ccfcae0d Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= -Date: Fri, 27 Mar 2020 17:37:05 +0200 -Subject: [PATCH] cpufreq: fix memory leak - -gtk_widget_destroy only calls g_object_run_dispose which normally -would unparent/remove widget from container but as we do not add -widget to container its floating reference is never removed and -widget is not destroyed. - -https://gitlab.gnome.org/GNOME/gnome-panel/-/issues/21 ---- - cpufreq/src/cpufreq-applet.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c -index eeba30732..8a27daf51 100644 ---- a/cpufreq/src/cpufreq-applet.c -+++ b/cpufreq/src/cpufreq-applet.c -@@ -337,10 +337,11 @@ get_text_width (const gchar *text) - - width = 0; - label = gtk_label_new (text); -+ g_object_ref_sink (label); - - gtk_widget_show (label); - gtk_widget_get_preferred_width (label, &width, NULL); -- gtk_widget_destroy (label); -+ g_object_unref (label); - - return width; - } --- -2.24.1 - diff --git a/gnome-applets.spec b/gnome-applets.spec index 49374ba..c8114d4 100644 --- a/gnome-applets.spec +++ b/gnome-applets.spec @@ -1,21 +1,18 @@ # LTO -%global optflags %{optflags} -flto=auto -%global build_ldflags %{build_ldflags} -flto=auto +%global optflags %{optflags} -flto=auto +%global build_ldflags %{build_ldflags} -flto=auto %global po_package %{name}-3.0 Name: gnome-applets -Version: 3.36.1 -Release: 2%{?dist} +Version: 3.36.2 +Release: 1%{?dist} Summary: Small applications for the GNOME Flashback panel License: GPLv2+ URL: https://wiki.gnome.org/Projects/GnomeApplets Source0: https://download.gnome.org/sources/%{name}/3.36/%{name}-%{version}.tar.xz -# https://gitlab.gnome.org/GNOME/gnome-panel/-/issues/21 -Patch0: https://gitlab.gnome.org/GNOME/gnome-applets/-/commit/d283341d9ce172723be6c8f5babd73d6ccfcae0d.patch#/cpufreq-fix-memory-leak.patch - BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc @@ -125,6 +122,9 @@ rm -rf %{buildroot}%{_datadir}/xmodmap %changelog +* Tue Apr 07 2020 Artem Polishchuk - 3.36.2-1 +- Update to 3.36.2 + * Fri Mar 27 2020 Artem Polishchuk - 3.36.1-2 - Backport upstream patch for memory leak fix | gnome-panel#21 diff --git a/sources b/sources index 193a659..2c25da5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gnome-applets-3.36.1.tar.xz) = f00302e6c7aab9111935abdaeeccd465b109ff864754b8cee8c37db578d43de869bcdf7dfad8ef392655758e8ee638e8a006c6a0f947f85c7391b13a4e1ead9b +SHA512 (gnome-applets-3.36.2.tar.xz) = a21f600509cf38d372ee160c103f57ba67c197aff6c83f0c367d3cd2b8fcc452a92720e66216ce3c46d3933a150384907b15b4b27907448a7ff06a8c9bb55132