balsa r8096 - in trunk: . libbalsa



Author: PeterB
Date: Wed Mar 11 23:39:57 2009
New Revision: 8096
URL: http://svn.gnome.org/viewvc/balsa?rev=8096&view=rev

Log:
do not include gnome.h

Modified:
   trunk/ChangeLog
   trunk/libbalsa/address-book-ldap.c

Modified: trunk/libbalsa/address-book-ldap.c
==============================================================================
--- trunk/libbalsa/address-book-ldap.c	(original)
+++ trunk/libbalsa/address-book-ldap.c	Wed Mar 11 23:39:57 2009
@@ -41,7 +41,6 @@
 #include "address-book-ldap.h"
 
 #include <glib.h>
-#include <gnome.h>
 #include <sys/time.h>
 #include <string.h>
 #include <lber.h>
@@ -913,7 +912,7 @@
     gchar *str;
     gchar *step;
 
-    new = (gchar *)malloc((strlen(raw) * 3) + 1);
+    new = g_new(gchar, (strlen(raw) * 3) + 1);
     str = new;
     for (step = (gchar *)raw;
          step[0] != '\0';
@@ -945,7 +944,7 @@
     }
     str[0] = '\0';
     str = g_strdup(new);
-    free(new);
+    g_free(new);
     return str;
 }
 



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