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

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