anjuta r4833 - in trunk: . plugins/git



Author: jrliggett
Date: Sat Mar  7 09:25:02 2009
New Revision: 4833
URL: http://svn.gnome.org/viewvc/anjuta?rev=4833&view=rev

Log:
	* plugins/git/git-vcs-interface.c (git_ivcs_query_status):
	Fix a crash that happens sometimes when retrieving status via IAnjutaVcs 
	with the Git plugin.

Modified:
   trunk/ChangeLog
   trunk/plugins/git/git-vcs-interface.c

Modified: trunk/plugins/git/git-vcs-interface.c
==============================================================================
--- trunk/plugins/git/git-vcs-interface.c	(original)
+++ trunk/plugins/git/git-vcs-interface.c	Sat Mar  7 09:25:02 2009
@@ -222,7 +222,9 @@
 		                        "parent-file", 
 		                        g_object_ref (parent_file), 
 		                        (GDestroyNotify) g_object_unref);
-		g_object_set_data (G_OBJECT (status_command), "file", file);
+		g_object_set_data_full (G_OBJECT (status_command), "file", 
+								g_object_ref (file),
+								(GDestroyNotify) g_object_unref);
 		
 		g_object_unref (project_root_file);
 		g_object_unref (parent_file);
@@ -288,4 +290,4 @@
 		
 		anjuta_command_start (ANJUTA_COMMAND (remove_command));
 	}
-}
\ No newline at end of file
+}



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