totem r5583 - in trunk: . src



Author: hadess
Date: Wed Aug 20 09:42:36 2008
New Revision: 5583
URL: http://svn.gnome.org/viewvc/totem?rev=5583&view=rev

Log:
2008-08-20  Bastien Nocera  <hadess hadess net>

	* src/totem-dvb-setup.c (totem_dvb_setup_device):
	Don't add to the array after having got the pdata



Modified:
   trunk/ChangeLog
   trunk/src/totem-dvb-setup.c

Modified: trunk/src/totem-dvb-setup.c
==============================================================================
--- trunk/src/totem-dvb-setup.c	(original)
+++ trunk/src/totem-dvb-setup.c	Wed Aug 20 09:42:36 2008
@@ -93,9 +93,10 @@
 	tmp = g_strdup_printf ("--transient-for=%u", (unsigned int) GDK_WINDOW_XID (GTK_WIDGET (parent)->window));
 	g_ptr_array_add (arr, tmp);
 	g_ptr_array_add (arr, g_strdup (device));
-	argv = (gchar **) arr->pdata;
 	g_ptr_array_add (arr, NULL);
 
+	argv = (gchar **) arr->pdata;
+
 	if (g_spawn_async (NULL, argv, NULL, G_SPAWN_DO_NOT_REAP_CHILD, NULL,
 			   NULL, &pid, NULL) == FALSE) {
 		g_ptr_array_free (arr, TRUE);



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