[nautilus/undo-manager] file-operations: destroy the undo data when aborting the job



commit c53fe5619c9a5b9f320d0f92599dcf54518dbb7f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Dec 7 16:49:31 2010 +0100

    file-operations: destroy the undo data when aborting the job

 libnautilus-private/nautilus-file-operations.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c
index 2da5096..989231f 100644
--- a/libnautilus-private/nautilus-file-operations.c
+++ b/libnautilus-private/nautilus-file-operations.c
@@ -1268,7 +1268,10 @@ static void
 abort_job (CommonJob *job)
 {
 	g_cancellable_cancel (job->cancellable);
-	
+
+	/* destroy the undo action data too */
+	nautilus_undo_stack_action_data_free (job->undo_redo_data);
+	job->undo_redo_data = NULL;
 }
 
 static gboolean



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