From 0266f7e80438a7860883397cc6724d4a3ab14ee2 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 7 Aug 2012 17:17:24 +0200 Subject: Fix operation on GLib 2.24 --- test/benchmark.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/benchmark.c') diff --git a/test/benchmark.c b/test/benchmark.c index 7e66405..0b4f6f8 100644 --- a/test/benchmark.c +++ b/test/benchmark.c @@ -76,6 +76,7 @@ log_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *mes g_io_channel_write_chars (channel, new_message, strlen (new_message), &n_written, &error); g_assert_no_error (error); + g_free (new_message); #else g_io_channel_write_chars (channel, message, strlen (message), &n_written, &error); g_assert_no_error (error); @@ -83,8 +84,6 @@ log_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *mes g_io_channel_flush (channel, &error); g_assert_no_error (error); - - g_free (new_message); } static void -- cgit v1.2.3