[nautilus] properties-window: make sure to clear group/owner changes on destroy



commit 9f7c0918df448b5b078ff2ca372c062a1cf2d83c
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jan 17 13:37:50 2013 -0500

    properties-window: make sure to clear group/owner changes on destroy
    
    In case a pending change group/owner operation is happening while the
    window is destroyed, we were failing to properly clean up the operation,
    possibly leading to a leak or an invalid state.

 src/nautilus-properties-window.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 10a889f..e3697a7 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -5217,6 +5217,9 @@ real_destroy (GtkWidget *object)
 
 	remove_window (window);
 
+	unschedule_or_cancel_group_change (window);
+	unschedule_or_cancel_owner_change (window);
+
 	for (l = window->details->original_files; l != NULL; l = l->next) {
 		nautilus_file_monitor_remove (NAUTILUS_FILE (l->data), &window->details->original_files);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]