[grisbi-cvs] grisbi/src utils_dates.c,1.58,1.59

Gunee guneemwelloeux at users.sourceforge.net
Fri Nov 13 21:40:50 CET 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv5974

Modified Files:
	utils_dates.c 
Log Message:
Fixed bad operation causing bug with GTK 2.18

Index: utils_dates.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/utils_dates.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- utils_dates.c	4 Nov 2009 19:52:14 -0000	1.58
+++ utils_dates.c	13 Nov 2009 20:40:48 -0000	1.59
@@ -308,8 +308,8 @@
     return NULL;
 
     /* Keep the const gchar in that function */
-    string = my_strdup (date_string);
-    if ( ! string )
+    string = g_strdup (date_string);
+    if ( ! strlen ( string ) )
         return NULL;
     g_strstrip ( string );
 
@@ -353,6 +353,7 @@
     string = g_strjoinv ( ".", tab_date );
     /* split the parts of the date */
     tab_date = g_strsplit_set ( string, ".", 0 );
+	g_free(string);
 
     num_fields = g_strv_length ( tab_date );
 



More information about the cvs mailing list