From 2c409777d74acf08f83da031dc589bd438a45220 Mon Sep 17 00:00:00 2001 From: Monsta Date: Mon, 3 Nov 2014 14:51:38 +0300 Subject: don't leak memory on g_return_if_fail --- src/eom-debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/eom-debug.c b/src/eom-debug.c index 0523909..4bd8c87 100644 --- a/src/eom-debug.c +++ b/src/eom-debug.c @@ -108,6 +108,7 @@ eom_debug_message (EomDebug section, { #ifdef ENABLE_PROFILING gdouble seconds; + g_return_if_fail (timer != NULL); #endif va_list args; @@ -120,8 +121,6 @@ eom_debug_message (EomDebug section, va_end (args); #ifdef ENABLE_PROFILING - g_return_if_fail (timer != NULL); - seconds = g_timer_elapsed (timer, NULL); g_print ("[%f (%f)] %s:%d (%s) %s\n", seconds, seconds - last, file, line, function, msg); -- cgit v1.2.1