glib r7636 - in trunk: . gio



Author: gbowland
Date: Fri Oct 31 02:23:55 2008
New Revision: 7636
URL: http://svn.gnome.org/viewvc/glib?rev=7636&view=rev

Log:
2008-10-31  Grahame Bowland  <grahame angrygoats net>

	Bug 558185 â 'parent' variable in g_local_file_get_child_for_display_name() 
	hits g_object_unref(NULL) assertion

	* gio/glocalfile.c: 
	- remove unused variable. Patch by Matt Johnston <matt ucc asn au>


Modified:
   trunk/ChangeLog
   trunk/gio/glocalfile.c

Modified: trunk/gio/glocalfile.c
==============================================================================
--- trunk/gio/glocalfile.c	(original)
+++ trunk/gio/glocalfile.c	Fri Oct 31 02:23:55 2008
@@ -592,7 +592,7 @@
 					 const char   *display_name,
 					 GError      **error)
 {
-  GFile *parent, *new_file;
+  GFile *new_file;
   char *basename;
 
   basename = g_filename_from_utf8 (display_name, -1, NULL, NULL, NULL);
@@ -604,9 +604,7 @@
       return NULL;
     }
 
-  parent = g_file_get_parent (file);
   new_file = g_file_get_child (file, basename);
-  g_object_unref (parent);
   g_free (basename);
   
   return new_file;



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