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

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