[arch-commits] Commit in libportal/trunk (2 files)

Jan Steffens heftig at archlinux.org
Wed Nov 27 22:35:26 UTC 2019


    Date: Wednesday, November 27, 2019 @ 22:35:26
  Author: heftig
Revision: 369849

fix a bad free

Added:
  libportal/trunk/0001-filechooser-Don-t-try-to-free-the-method-name-it-s-s.patch
Modified:
  libportal/trunk/PKGBUILD

-----------------------------------------------------------------+
 0001-filechooser-Don-t-try-to-free-the-method-name-it-s-s.patch |   24 ++++++++++
 PKGBUILD                                                        |    7 ++
 2 files changed, 29 insertions(+), 2 deletions(-)

Added: 0001-filechooser-Don-t-try-to-free-the-method-name-it-s-s.patch
===================================================================
--- 0001-filechooser-Don-t-try-to-free-the-method-name-it-s-s.patch	                        (rev 0)
+++ 0001-filechooser-Don-t-try-to-free-the-method-name-it-s-s.patch	2019-11-27 22:35:26 UTC (rev 369849)
@@ -0,0 +1,24 @@
+From 902917eb4f66f69496e977b3c72e0fa178775f89 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
+Date: Wed, 27 Nov 2019 22:29:48 +0000
+Subject: [PATCH] filechooser: Don't try to free the method name; it's static
+
+---
+ libportal/filechooser.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/libportal/filechooser.c b/libportal/filechooser.c
+index 2b665b8..135c269 100644
+--- a/libportal/filechooser.c
++++ b/libportal/filechooser.c
+@@ -78,7 +78,6 @@ file_call_free (FileCall *call)
+   g_object_unref (call->portal);
+   g_object_unref (call->task);
+ 
+-  g_free (call->method);
+   g_free (call->title);
+   g_free (call->current_name);
+   g_free (call->current_folder);
+-- 
+2.24.0
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-27 21:05:41 UTC (rev 369848)
+++ PKGBUILD	2019-11-27 22:35:26 UTC (rev 369849)
@@ -10,8 +10,10 @@
 depends=(glib2)
 makedepends=(git meson gtk-doc)
 _commit=a7a1edcaeceb53652b7d76adadfec390f7b09178  # tags/0.1^0
-source=("git+https://github.com/flatpak/libportal#commit=$_commit")
-sha256sums=('SKIP')
+source=("git+https://github.com/flatpak/libportal#commit=$_commit"
+        0001-filechooser-Don-t-try-to-free-the-method-name-it-s-s.patch)
+sha256sums=('SKIP'
+            '934374cb20a3bb76df2c1982a56a15e1c9808a1dfa46273db6529dd6213bde1f')
 
 pkgver() {
   cd $pkgname
@@ -20,6 +22,7 @@
 
 prepare() {
   cd $pkgname
+  git apply -3 ../0001-filechooser-Don-t-try-to-free-the-method-name-it-s-s.patch
 }
 
 build() {



More information about the arch-commits mailing list