gimp: fix crash on exit
This commit is contained in:
parent
b427190733
commit
df402ad795
2 changed files with 29 additions and 1 deletions
|
@ -0,0 +1,28 @@
|
|||
From d7228727d7a4b11909001cf8fd8977d68bd29720 Mon Sep 17 00:00:00 2001
|
||||
From: Luca Bacci <luca.bacci982@gmail.com>
|
||||
Date: Tue, 2 Apr 2024 11:31:08 +0200
|
||||
Subject: [PATCH] QuitDialog: disconnect signal handler on dialog destroy
|
||||
|
||||
...rather than finalize.
|
||||
|
||||
Fixes #10785
|
||||
---
|
||||
app/dialogs/quit-dialog.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/app/dialogs/quit-dialog.c b/app/dialogs/quit-dialog.c
|
||||
index ad9a4495f9c..3c18a09260a 100644
|
||||
--- a/app/dialogs/quit-dialog.c
|
||||
+++ b/app/dialogs/quit-dialog.c
|
||||
@@ -300,7 +300,7 @@ quit_close_all_dialog_new (Gimp *gimp,
|
||||
|
||||
closure = g_cclosure_new (G_CALLBACK (quit_close_all_dialog_container_changed),
|
||||
private, NULL);
|
||||
- g_object_watch_closure (G_OBJECT (private->dialog), closure);
|
||||
+ g_signal_connect_swapped (private->dialog, "destroy", G_CALLBACK (g_closure_invalidate), closure);
|
||||
g_signal_connect_closure (private->images, "add", closure, FALSE);
|
||||
g_signal_connect_closure (private->images, "remove", closure, FALSE);
|
||||
|
||||
--
|
||||
GitLab
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'gimp'
|
||||
pkgname=gimp
|
||||
version=2.10.36
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-check-update --datadir=/usr/share --disable-python"
|
||||
hostmakedepends="automake gegl gettext-devel glib-devel gtk+-devel intltool
|
||||
|
|
Loading…
Add table
Reference in a new issue