[Xfce4-commits] r25020 - squeeze/trunk/libsqueeze

Stephan Arts stephan at xfce.org
Fri Feb 23 01:19:14 CET 2007


Author: stephan
Date: 2007-02-23 00:19:13 +0000 (Fri, 23 Feb 2007)
New Revision: 25020

Modified:
   squeeze/trunk/libsqueeze/archive-command.c
   squeeze/trunk/libsqueeze/archive-support-gnu-tar.c
Log:
fixed ref-counting (i think)

Modified: squeeze/trunk/libsqueeze/archive-command.c
===================================================================
--- squeeze/trunk/libsqueeze/archive-command.c	2007-02-23 00:12:17 UTC (rev 25019)
+++ squeeze/trunk/libsqueeze/archive-command.c	2007-02-23 00:19:13 UTC (rev 25020)
@@ -110,7 +110,10 @@
 
 		next_archive_command = lsq_archive_get_front_command(archive_command->archive);
 		if(next_archive_command)
+		{
 			lsq_archive_command_run(next_archive_command);
+			g_object_unref(next_archive_command);
+		}
 
 		archive_command->archive = NULL;
 	}

Modified: squeeze/trunk/libsqueeze/archive-support-gnu-tar.c
===================================================================
--- squeeze/trunk/libsqueeze/archive-support-gnu-tar.c	2007-02-23 00:12:17 UTC (rev 25019)
+++ squeeze/trunk/libsqueeze/archive-support-gnu-tar.c	2007-02-23 00:19:13 UTC (rev 25020)
@@ -294,7 +294,6 @@
 			archive_command = lsq_archive_command_new("", archive, command_skeleton, FALSE);
 			g_object_set_data(G_OBJECT(archive_command), "files", g_strdup(files));
 			g_object_set_data(G_OBJECT(archive_command), "options", g_strdup(options));
-			g_object_unref(archive_command);
 			g_free(command_skeleton);
 		}
 		else
@@ -316,7 +315,6 @@
 			{
 				archive_command = lsq_archive_command_new("", archive, command_skeleton, FALSE);
 				g_object_set_data(G_OBJECT(archive_command), LSQ_ARCHIVE_TEMP_FILE, tmp_file);
-				g_object_unref(archive_command);
 				g_free(command_skeleton);
 			}
 
@@ -324,7 +322,6 @@
 			archive_command = lsq_archive_command_new("", archive, command_skeleton, FALSE);
 			g_object_set_data(G_OBJECT(archive_command), "files", g_strdup(files));
 			g_object_set_data(G_OBJECT(archive_command), "options", g_strdup(options));
-			g_object_unref(archive_command);
 			g_free(command_skeleton);
 			command_skeleton = NULL;
 
@@ -340,14 +337,16 @@
 			{
 				archive_command = lsq_archive_command_new("", archive, command_skeleton, FALSE);
 				g_object_set_data(G_OBJECT(archive_command), LSQ_ARCHIVE_TEMP_FILE, tmp_file);
-				g_object_unref(archive_command);
 				g_free(command_skeleton);
 			}
 		}
 		g_free(files);
 		archive_command = lsq_archive_get_front_command(archive);
 		if(archive_command)
+		{
 			lsq_archive_command_run(archive_command);
+			g_object_unref(archive_command);
+		}
 		else
 			return 1;
 	}



More information about the Xfce4-commits mailing list