[Xfce4-commits] r25140 - squeeze/trunk/libsqueeze
Stephan Arts
stephan at xfce.org
Fri Mar 9 11:10:34 CET 2007
Author: stephan
Date: 2007-03-09 10:10:34 +0000 (Fri, 09 Mar 2007)
New Revision: 25140
Modified:
squeeze/trunk/libsqueeze/archive-support-gnu-tar.c
Log:
fix unref and dest-path of gnu-tar extraction;
Modified: squeeze/trunk/libsqueeze/archive-support-gnu-tar.c
===================================================================
--- squeeze/trunk/libsqueeze/archive-support-gnu-tar.c 2007-03-09 10:00:35 UTC (rev 25139)
+++ squeeze/trunk/libsqueeze/archive-support-gnu-tar.c 2007-03-09 10:10:34 UTC (rev 25140)
@@ -385,12 +385,19 @@
if(!g_strcasecmp(thunar_vfs_mime_info_get_name(archive->mime_info), "application/x-tzo"))
options = "--use-compress-program=lzop";
+ if(extract_path)
+ options = g_strconcat(options, " -C ", extract_path, NULL);
+
+
archive_command = lsq_archive_command_new("", archive, command_skeleton, FALSE, TRUE);
g_object_set_data(G_OBJECT(archive_command), "files", g_strdup(files));
g_object_set_data(G_OBJECT(archive_command), "options", g_strdup(options));
lsq_archive_command_run(archive_command);
+ g_object_unref(archive_command);
g_free(command_skeleton);
g_free(files);
+ if(extract_path)
+ g_free(options);
}
return 0;
}
More information about the Xfce4-commits
mailing list