summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-08-07 17:17:24 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-08-07 17:17:24 +0200
commit0266f7e80438a7860883397cc6724d4a3ab14ee2 (patch)
tree49117823b580944508d5d3cf1e707b6a5f7d7615 /test
parentbfb4248653da561cfa5e013cea574602162aee4a (diff)
downloadlibuca-0266f7e80438a7860883397cc6724d4a3ab14ee2.tar.gz
libuca-0266f7e80438a7860883397cc6724d4a3ab14ee2.tar.bz2
libuca-0266f7e80438a7860883397cc6724d4a3ab14ee2.tar.xz
libuca-0266f7e80438a7860883397cc6724d4a3ab14ee2.zip
Fix operation on GLib 2.24
Diffstat (limited to 'test')
-rw-r--r--test/benchmark.c3
1 files changed, 1 insertions, 2 deletions
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