[nautilus/gnome-2-28] Don't free uninitilized errors



commit 63a1079819293d371c09afd89324e8a9d376fa57
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Nov 27 14:36:12 2009 +0100

    Don't free uninitilized errors
    
    test_dir_is_parent doesn't set error, so no need to free it.
    (cherry picked from commit 72e1296847061336059a089b0367c86f00e5f08f)

 libnautilus-private/nautilus-file-operations.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c
index ba1020c..cb356bd 100644
--- a/libnautilus-private/nautilus-file-operations.c
+++ b/libnautilus-private/nautilus-file-operations.c
@@ -3852,7 +3852,6 @@ copy_move_file (CopyMoveJob *copy_job,
 	 * detect and report it at this level) */
 	if (test_dir_is_parent (dest_dir, src)) {
 		if (job->skip_all_error) {
-			g_error_free (error);
 			goto out;
 		}
 		
@@ -3886,7 +3885,6 @@ copy_move_file (CopyMoveJob *copy_job,
 	 */
 	if (test_dir_is_parent (src, dest)) {
 		if (job->skip_all_error) {
-			g_error_free (error);
 			goto out;
 		}
 		
@@ -4526,7 +4524,6 @@ move_file_prepare (CopyMoveJob *move_job,
 	 * detect and report it at this level) */
 	if (test_dir_is_parent (dest_dir, src)) {
 		if (job->skip_all_error) {
-			g_error_free (error);
 			goto out;
 		}
 		



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