Blame SOURCES/file-roller-3.14.2-fix-extraction-progress-dialog-crash.patch

4af8a9
From c459db8619b9eafdad9d5078838ef46afb7a9f41 Mon Sep 17 00:00:00 2001
4af8a9
From: David King <dking@redhat.com>
4af8a9
Date: Thu, 16 Jul 2015 14:53:03 +0100
4af8a9
Subject: [PATCH] Avoid a crash when extracting from the commandline
4af8a9
4af8a9
If calling --extract on the the commandline, the main window is
4af8a9
destroyed before the progress dialog has emitted the response signal.
4af8a9
The callbacks for the response signal depend on the existence of the
4af8a9
main window, so take a reference to the main window in the progress
4af8a9
dialog, to ensure that it exists for the lifetime of the dialog.
4af8a9
4af8a9
https://bugzilla.gnome.org/show_bug.cgi?id=752478
4af8a9
https://bugzilla.redhat.com/show_bug.cgi?id=1186481
4af8a9
---
4af8a9
 src/fr-window.c | 2 ++
4af8a9
 1 file changed, 2 insertions(+)
4af8a9
4af8a9
diff --git a/src/fr-window.c b/src/fr-window.c
4af8a9
index be7a0de..8781439 100644
4af8a9
--- a/src/fr-window.c
4af8a9
+++ b/src/fr-window.c
4af8a9
@@ -2478,6 +2478,8 @@ create_the_progress_dialog (FrWindow *window)
4af8a9
 			  "delete_event",
4af8a9
 			  G_CALLBACK (progress_dialog_delete_event),
4af8a9
 			  window);
4af8a9
+
4af8a9
+	g_object_ref (window);
4af8a9
 }
4af8a9
 
4af8a9
 
4af8a9
-- 
4af8a9
2.4.6
4af8a9