From a3660532535f92cfac136435579ed4f23231f48c Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 7 Aug 2015 09:46:49 -0400 Subject: [PATCH] glib: remove deprecated g_mem_is_system_malloc() check in gprintf.c --- glib/gprintf.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/glib/gprintf.c b/glib/gprintf.c index cf4bf21cd..1c831b04e 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