[Xfce4-commits] r25973 - xarchiver/trunk/src

Giuseppe Torelli colossus at xfce.org
Sun Aug 12 00:09:33 CEST 2007


Author: colossus
Date: 2007-08-11 22:09:33 +0000 (Sat, 11 Aug 2007)
New Revision: 25973

Modified:
   xarchiver/trunk/src/main.c
   xarchiver/trunk/src/socket.c
Log:
Fixed crash when running another xarchiver instance for opening an archive from the cmd-line.


Modified: xarchiver/trunk/src/main.c
===================================================================
--- xarchiver/trunk/src/main.c	2007-08-11 21:10:04 UTC (rev 25972)
+++ xarchiver/trunk/src/main.c	2007-08-11 22:09:33 UTC (rev 25973)
@@ -239,7 +239,7 @@
 		Update_StatusBar ( _("Ready."));
 		gtk_widget_show (MainWindow);
 
-		/* This to open the archive_cmd from the command line */
+		/* This to open the archive from the command line */
 		if ( argc == 2 )
 		{
 			gchar *dummy = g_strdup(argv[1]);

Modified: xarchiver/trunk/src/socket.c
===================================================================
--- xarchiver/trunk/src/socket.c	2007-08-11 21:10:04 UTC (rev 25972)
+++ xarchiver/trunk/src/socket.c	2007-08-11 22:09:33 UTC (rev 25973)
@@ -69,12 +69,10 @@
 			{
 				socket_fd_write_all(sock, filename, strlen(filename));
 				socket_fd_write_all(sock, "\n", 1);
-				g_free(filename);
 			}
 		}
 		socket_fd_write_all(sock, ".\n", 2);
 	}
-
 	socket_fd_close(sock);
 	return -1;
 }
@@ -300,5 +298,3 @@
 }
 
 #endif
-
-



More information about the Xfce4-commits mailing list