[file-roller] fixed a segmentation fault when closing the window
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] fixed a segmentation fault when closing the window
- Date: Sun, 25 Nov 2012 14:39:06 +0000 (UTC)
commit a047c714d431857b89dc635f1927707ecec7195d
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Nov 25 15:22:56 2012 +0100
fixed a segmentation fault when closing the window
keep a ref of the main window when the update dialog is active
src/dlg-update.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/dlg-update.c b/src/dlg-update.c
index ba850d4..5d3ebe4 100644
--- a/src/dlg-update.c
+++ b/src/dlg-update.c
@@ -39,7 +39,7 @@ enum {
typedef struct {
FrWindow *window;
- GtkBuilder *builder;
+ GtkBuilder *builder;
GtkWidget *update_file_dialog;
GtkWidget *update_file_primary_text_label;
@@ -62,7 +62,8 @@ dlg_update__destroy_cb (GtkWidget *widget,
DialogData *data)
{
fr_window_update_dialog_closed (data->window);
- g_object_unref (G_OBJECT (data->builder));
+ g_object_unref (data->window);
+ g_object_unref (data->builder);
if (data->file_list != NULL)
g_list_free (data->file_list);
g_free (data);
@@ -286,7 +287,7 @@ dlg_update (FrWindow *window)
}
data->file_list = NULL;
- data->window = window;
+ data->window = g_object_ref (window);
/* Get the widgets. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]