[glib/danw/fixes: 2/5] glib: remove deprecated g_mem_is_system_malloc() check in gprintf.c



commit a3660532535f92cfac136435579ed4f23231f48c
Author: Dan Winship <danw gnome org>
Date:   Fri Aug 7 09:46:49 2015 -0400

    glib: remove deprecated g_mem_is_system_malloc() check in gprintf.c

 glib/gprintf.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/glib/gprintf.c b/glib/gprintf.c
index cf4bf21..1c831b0 100644
--- a/glib/gprintf.c
+++ b/glib/gprintf.c
@@ -316,13 +316,6 @@ g_vasprintf (gchar      **string,
   len = vasprintf (string, format, args);
   if (len < 0)
     *string = NULL;
-  else if (!g_mem_is_system_malloc ()) 
-    {
-      /* vasprintf returns malloc-allocated memory */
-      gchar *string1 = g_strndup (*string, len);
-      free (*string);
-      *string = string1;
-    }
 
 #else
 


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